This is the entry point to running tests written with this library from
the command line. Note that this library also implements the
common testing interface for
test libraries, so tests should also just work with sbt test.
If this application is run and given just a single test class name, it
will run that test and write its TAP stream to the console.
$ scala com.iinteractive.test.harness.TestHarness MyTest
ok 1
ok 21..2
If this application is run and given multiple test class names, it will
run each of those tests, and present a summary report, similar to the one
produces by
Perl's Test::Harness.
$ scala com.iinteractive.test.harness.TestHarness MyTest1 MyTest2
MyTest1 .. ok
MyTest2 .. ok
All tests successful.
Files=2, Tests=4
Result: PASS
This application also accepts a few command line options to customize its
behavior:
-r: Alternative Reporter
class to use for running a single test.
-R: Alternative
MultiTestReporter
class to use for running a group of tests. Also enables using the
MultiTestReporter for a single test.
This is the entry point to running tests written with this library from the command line. Note that this library also implements the common testing interface for test libraries, so tests should also just work with
sbt test
.If this application is run and given just a single test class name, it will run that test and write its TAP stream to the console.
If this application is run and given multiple test class names, it will run each of those tests, and present a summary report, similar to the one produces by Perl's Test::Harness.
This application also accepts a few command line options to customize its behavior:
-r
: Alternative Reporter class to use for running a single test.-R
: Alternative MultiTestReporter class to use for running a group of tests. Also enables using the MultiTestReporter for a single test.--help
: Prints usage information.