gnu Smalltalk includes a Smalltalk script to simplify running SUnit test suites. It is called gst-sunit. The command-line to gst-sunit specifies the packages, files and classes to test:
-I
--image-file
Run tests inside the given image.
-q
--quiet
Hide the program's output. The results are still communicated with the program's exit code.
-v
--verbose
Be more verbose, in particular this will cause gst-sunit to write which test is currently being executed.
-f FILE
--file=FILE
Load FILE before running the required test cases.
-p PACKAGE
--package=PACKAGE
Load PACKAGE and its dependencies, and add PACKAGE's tests to the set of test cases to run.
CLASS
CLASS*
Add CLASS to the set of test cases to run. An asterisk after the class name adds all the classes in CLASS's hierarchy. In particular, each selector whose name starts with test constitutes a separate test case.
VAR=VALUE
Associate variable VAR with a value. Variables allow customization of the testing environment. For example, the username with which to access a database can be specified with variables. From within a test, variables are accessible with code like this:
TestSuitesScripter variableAt: 'mysqluser' ifAbsent:
Note that a #variableAt: variant does not exist, because the testsuite should pick default values in case the variables are not specified by the user.