The New TestRunner
- Allows execution of FitNesse tests from the command line.
- Can be included in build scripts like ANT
- Exits with an exit code equal to the number of failures + exception that occured
- Can generate HTML output.
- Is now debuggable
usage: java fitnesse.runner.TestRunner [options] host port page-name
-html <filename|'stdout'> dump HTML results to a file or to standard output
If page name is a suite, all the tests in the suite will be executed.
The Deprecated version of TestRunner
java fitnesse.TestRunner [-v] <url>
The command takes one argument: a url of a FitNesse test execution. The exit value of execution will be the number of test failures.
For example, the following line would execute the single TestTables[?] test on fitnesse.org.
java fitnesse.TestRunner http://www.fitnesse.org/FitNesse.SuiteAcceptanceTests.SuiteWikiPageResponderTests.TestTables?test
Or we could execute all the acceptance tests located on fitnesse.org.
java fitnesse.TestRunner http://www.fitnesse.org/FitNesse.SuiteAcceptanceTests?suite
If all is well, both executions should exit with 0. If you'd like to see a bit more output use the -v (verbose) option.
The intent here is to allow simple execution of all the the acceptance tests without opening a browser or starting a local FitNesse. This TestRunner could be incorporated into a build file or script to automate the execution of accetpance tests during the build process.
Add Child Page to CommandLineTestRunner