Squeak-dev and SUnit
bergel at iam.unibe.ch
Mon Sep 17 09:24:30 UTC 2007
Doit-ing the follows results in a rollback:
CollectionTest suite: #allStandardTests
select: [:s| true ]
reject: [:s| false]
Is this intended ?
I would like to select the set of test* methods that belongs to a
given method category.
On 12 Sep 2007, at 16:01, Keith Hodges wrote:
> Bergel, Alexandre wrote:
>> Dear Squeak-dev friends,
>> The method buildSuiteFromSelectors seems to have disappeared from
>> TestCase class.
>> Is there a rational behind? Should I declare this as a bug?
> The version of SUnit now adopted in squeak-dev is the one named as
> 'SUNit-improved' in the package universes. It has many changes from
> the original especially in the area of suite building.
> One purpose of these changes is to enable a variety of suite
> building strategies so that SUnit can be used alongside other test
> frameworks which use different strategies, such as SSpec, whose
> tests are defined as "those methods in method category 'spec'.
> In the case of TestCase-buildSuiteFromSelectors there appeared to
> be a duplication of code. The primary interface being #suite, which
> calls #buildSuite. Please correct me if I am wrong but
> #buildSuiteFromSelectors seemed to duplicate the same
> functionality. In this version of SUnit-#suite is preserved for
> backward compatibility but #buildSuiteFromSelectors was not.
> 'SUnit-improved''s TestCase-suite, calls TestCase-suite:
> #allStandardTests , where #allStandardTests is defined as #
> ('include:test*' 'include at tests*'), which builds the suite from all
> selectors prefixed 'test' AND all methods in method-categories
> prefixed 'tests'.
> For a fuller explanation of suite building please see the class
> best regards
Alexandre Bergel http://www.bergel.eu
More information about the Squeak-dev