|
|
|
Artima SuiteRunner |
Why |
Getting Started |
Tutorial |
Get Help |
Discuss |
Print |
Email |
First Page |
Previous |
Next
|
|
Advertisement
|
accountjunit.srj:
java -jar suiterunner-[release].jar accountjunit.srj
A recipe file is a Java properties file that supplies information needed by Artima SuiteRunner to run a suite of tests.
Recipe files contain values for three properties: org.suiterunner.Runpath, org.suiterunner.Suites, and
org.suiterunner.Reporters. The contents of accountjunit.srj are:
org.suiterunner.Runpath=-p "example" org.suiterunner.Suites=-s com.artima.examples.account.ex6test.AccountTestCase org.suiterunner.Reporters=-g
In accountjunit.srj:
org.suiterunner.Runpath (-p "example") specifies a runpath with a single
directory, example.
org.suiterunner.Suites (-s com.artima.examples.account.ex6test.AccountTestCase)
indicates that Artima SuiteRunner should load the specified class, a subclass of junit.framework.TestCase,
and run it.
org.suiterunner.Reporters (-g)
indicates that Artima SuiteRunner will display its graphical user interface (GUI) and show the
results of the run there.
When invoked via the previous command that specifies accountjunit.srj as a command line parameter,
Artima SuiteRunner will:
URLClassLoader that can load classes from the example directory, the directory specified in
the recipe file's org.suiterunner.Runpath property.
URLClassLoader, attempt to load class com.artima.examples.account.ex6test.AccountTestCase, the
class specified in in the recipe file's org.suiterunner.Suites property.
NoClassDefFoundError that the com.artima.examples.account.ex6test.AccountTestCase class can't be loaded because its
superclass, junit.framework.TestCase, can't be found.
NoClassDefFoundError to the user.
|
Sponsored Links
|