|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.TestSuite
groovy.util.GroovyTestSuite
A TestSuite which will run a Groovy unit test case inside any Java IDE either as a unit test case or as an application.
You can specify the GroovyUnitTest to run by running this class as an appplication and specifying the script to run on the command line.
java groovy.util.GroovyTestSuite src/test/Foo.groovy
Or to run the test suite as a unit test suite in an IDE you can use
the 'test' system property to define the test script to run.
e.g. pass this into the JVM when the unit test plugin runs...
-Dtest=src/test/Foo.groovy
Field Summary | |
protected static String |
file
|
protected GroovyClassLoader |
loader
|
Constructor Summary | |
GroovyTestSuite()
|
Method Summary | |
Class |
compile(String fileName)
|
void |
loadTestSuite()
|
static void |
main(String[] args)
|
static junit.framework.Test |
suite()
|
Methods inherited from class junit.framework.TestSuite |
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static String file
protected GroovyClassLoader loader
Constructor Detail |
public GroovyTestSuite()
Method Detail |
public static void main(String[] args)
public static junit.framework.Test suite()
public void loadTestSuite() throws Exception
Exception
public Class compile(String fileName) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |