Sponsored Link •
Artima SuiteRunner is a free testing toolkit for Java, released under the Open Software License. You can use this tool with JUnit to run existing JUnit TestSuites, or stand-alone, to create unit and conformance tests for Java APIs.
To download a ZIP file containing source, binaries, and examples for Artima SuiteRunner, please click on the following link:
account.srj- Recipe file for the example
accountjunit.srj- Recipe file for the JUnit example (Added in 1.0beta4)
accountscript.srj- Recipe file for script-driven example (Added in 1.0beta6)
example- Directory of Java source and class files for the example
generatedscript.txt- Generated cript for script-driven example (Added in 1.0beta6)
javadoc- Directory containing Javadoc documentation for the API
README.txt- The obligatory README file
righttriangle.srj- Recipe file for the Settings example (Added in 1.0beta7)
script.txt- Hand-written script for script-driven example (Added in 1.0beta6)
suiterunner-[release].jar- Artima SuiteRunner executable JAR file
suiterunner-[release]-src.zip- ZIP file of Artima SuiteRunner source code
wrongtriangle.srj- Recipe file for the Settings example (Added in 1.0beta7)
xmlreporter.srj- Recipe file for the XMLReporter example (Added in 1.0beta5)
To run the example, type the following command in the directory in which you unzipped the distribution ZIP file:
java -jar suiterunner-[release].jar account.srj
Artima SuiteRunner requires Java 1.2 or later.
For more information about the example, please see Getting Started With Artima SuiteRunner.
To learn how to use Artima SuiteRunner to run your existing JUnit test suites, please see Running JUnit Tests with Artima SuiteRunner.
If you have questions, comments, criticisms, or suggestions about Artima SuiteRunner, please post to the SuiteRunner Forum.
You may also wish to read the Artima SuiteRunner Tutorial, an article that shows you how to build conformance and unit tests with Artima SuiteRunner.
In the 1.0beta7 release, class
Report has been made
tests can now be configured via settings provide in the recipe, on the command line, or
via the Edit Recipe dialog. Two methods have been added to the public interface of
setUpSuite is called before
Any settings are passed as key value pairs in a
Map in the context parameter of
com.artima.examples.settings.ex1.PythagoreanSuiteto the examples directory.
wrontriangle.srjto the suiterunner-[release] directory.
testSucceededto be called after
Thread getThread()in class
String getThreadName(). This breaking change was done to enable
Reportto be made
tearDownSuiteto the public interface of class
execute, both from the
Suite's implementation of
Suiteslisted in the recipe via the
The 1.0beta6 release adds a new script-driven example, adds JavaDoc API documentation for the examples, and modifies and clarifies the contract for Suite's implementation of executeTestMethods:
com.artima.examples.scriptdriven.ex1.ScriptDrivenAccountSuiteto the examples directory.
com.artima.examples.scriptdriven.ex1.ScriptGeneratorto the examples directory.
setUpFixturereturns normally, even if the test method completes abruptly with an exception.
tearDownFixturecompletes abruptly with an exception, but still attempt executing any sub-
executeTestMethods, so it mentions it invokes
tearDownFixture, and explains its behavior when either of these throws an exception.
The 1.0beta5 release adds a new XMLReporter example and fixes one bug in 1.0beta4:
com.artima.examples.reporter.xml.ex1.XMLReporterto the examples directory.
This release changes two method names in the public API, fixes a few minor bugs, and makes a few cosmetic enhancements over 1.0beta3:
The 1.0beta3 release fixes three bugs in 1.0beta2:
The 1.0beta2 release is the inital public release of Artima SuiteRunner.