[ENH] 'Classic' SUnit UI

Robert Hirschfeld hirschfeld at acm.org
Fri Oct 5 19:41:47 UTC 2001


"Change Set:		SUnit2Diff
Date:			5 October 2001
Author:			Robert Hirschfeld

This is a differential change set to SUnit. It provides the ('classic')
UI that allows the selection of a subset of unit tests, described by
name patterns. These patterns are to be matched by class names, by
method names, or their combination. Classes to be considered for class
name matching have to be subclasses of TestCase. Methods to be
considered must be defined in subclasses of TestCase, must take zero
arguments, and must have a name that matches at least 'test*'.

Example: If a project uses a classname prefix, say 'Xxx', one can use
this prefix to evaluate all test for this subset of classes by
evaluating

  TestRunner2 new runTests: 'Xxx*'.

To narrow down the set of tests further, one can add another selection
pattern to run only such test methods with names that end in 'Yyy':

  TestRunner2 new runTests: 'Xxx* test*Yyy'.

More convenient than the TestRunner2's text UI is the graphical UI
provided by TestModel. To open an instance of TestModel, evaluate:

  TestModel open.

The mechanism to select a subset of all tests is the same."


___________________________________________
                          Robert Hirschfeld
                  mailto:hirschfeld at acm.org
   http://www.prakinf.tu-ilmenau.de/~hirsch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SUnit2Diff.05Oct2057.cs.gz
Type: application/x-gzip
Size: 5283 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20011005/95d876b2/SUnit2Diff.05Oct2057.cs.bin


More information about the Squeak-dev mailing list