gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kind of unit testing framework for StepTalk


From: Stefan Urbanek
Subject: Re: kind of unit testing framework for StepTalk
Date: Mon, 19 Apr 2004 18:41:29 +0200

Hi,

On 2004-04-19 11:50:31 +0200 Mateu Batle <address@hidden> wrote:

Hi everybody,

I have implemented an Smalltalk script in StepTalk to help in the
testing of the Objective C code. I think one of the great points of
scripting languages is to help in testing code. Given the easiness
to connect Objective C and StepTalk scripts, I find the script
useful for basic testing needs.


Great. what do you think about including it in StepTalk Examples?

Since, StepTalk's Smalltalk is not very powerful it is not possible
to follow the normal conventions to define new tests, e.g. subclass
from TestCase, etc

Well ... StepTalk's smalltalk is not in fact Smalltalk as an environment, but just 
as a language. StepTalk was/is not supposed to provide full Smalltalk object model 
with classes and stuff. However, the plan was/is to create a prototype based 
environment with "prototype objects' Basic skeleton is already implemented in 
the form of ScriptObjects, where one can define an object with custom methods 
written in custom language (see Testing/sobjtest.st). What is missing?

1. inheritance of behaviour (like in the Sun's Self prototpe based 
language/environment) - easy to implement
2. "instance" variables of objects - not quite easy to implement

And the main show stopper is lack of a user friendly development tool (either 
gui or commandline) for constructing such objects. :-( Even it would be not too 
dificult to create one... I have hand-written plans somewhere, so if someone is 
interested i can redraw them and provide a PDF or something.

Best regards,

Stefan

PS: Btw. with StepTalk it would be not difficult to create interactive testing 
environment (use test cases interactively or send messages like in a IM client 
to a distant objective-c environment). However, implementation of distant 
environments is not even started. Usual lack-of-time issue...
--
http://stefan.agentfarms.net

First they ignore you, then they laugh at you, then they fight you, then you 
win.
- Mahatma Gandhi






reply via email to

[Prev in Thread] Current Thread [Next in Thread]