Fandom

Scratchpad

GNU Smalltalk Unit Level Testing

219,569pages on
this wiki
Add New Page
Discuss this page0 Share


A port of Kent Beck's SUnit is delivered with GNU Smalltalk, a brief overview could also be found in the info-documentation (Node SUnit, under Packages).

Additional but squeak-centric information can be found in Eng-Art8-SUnit-V1.pdf

To use SUnit in GNU Smalltalk, you'll have to file in SUnit, if not done already.

PackageLoader fileInPackage: 'SUnit'!

You'll maybe find


MyTest buildSuiteFromLocalSelectors run printNl!


useful, as it creates a suite containing all tests of MyTest? (methods beginning with test).

If the test fails, you should evaluate


(MyTest new) setUp; testMyFailingTest; tearDown!


as it gives the reason in the displayed walkback.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random wikia