[ENH] Re: [Sunit] Puzzled by changes 3.0-3.1

Robert Hirschfeld hirschfeld at windwardsolutions.com
Wed Mar 20 06:32:07 UTC 2002


Martin,

rwithers12 at attbi.com wrote:
[...]
> I believe that someone has a port of the old test runner called 
> TestRunner2.  It is probably on the SQFIXES page in the swiki 
> somewhere.
[...]

See the attached change set.

Best,
-Robert

---

'From Squeak3.2gamma of 13 January 2002 [latest update: #4743] 
 on 19 March 2002 at 2:43:31 pm'!

"Change Set:		SUnit2Diff
Date:			19 March 2002
Author:			Robert Hirschfeld

This is a differential change set to SUnit3CS that consolidates 
  SUnit2Diff.05Oct2057.cs, 
  SUnit2Diff2.05Oct2305.cs, SUnit2Diff3.03Dec2303.cs, 
  SUnitCSAllTestSelectorsFix.05Jan1355.cs, and 
  SUnit2CS3SelectorPatternDiff.19Mar1434.cs.

---------- SUnit2Diff.05Oct2057.cs ----------

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.

---------- SUnit2Diff2.05Oct2305.cs ----------

Re-introduces TestCase>>value:shouldRaise: and
TestCase>>value:shouldntRaise: to keep some of the old unit 
tests operational.

---------- SUnit2Diff3.03Dec2303.cs ----------

Makes the processing of a test suite show a progress bar. 
NOTE: There will be one progress bar per test suite...

---------- SUnitCSAllTestSelectorsFix.05Jan1355.cs ----------

Narrows down the collection of SUnit test selectors to those 
that match 'test*' AND that take zero arguments. (Test included...)

---------- SUnit2CS3SelectorPatternDiff.19Mar1434.cs ----------

(Re-) Inserts message-selector-pattern matching..."!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SUnit2CS3Diff.19Mar1443.cs.gz
Type: application/x-gzip
Size: 6164 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020320/f66ef3e4/SUnit2CS3Diff.19Mar1443.cs.bin


More information about the Squeak-dev mailing list