groovy.util
Class GroovyTestSuite
java.lang.Object
junit.framework.TestSuite
groovy.util.GroovyTestSuite
- All Implemented Interfaces:
- Test
public class GroovyTestSuite
- extends TestSuite
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
- Version:
- $Revision: 7922 $
- Author:
- James Strachan
Methods inherited from class junit.framework.TestSuite |
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString, warning |
file
protected static String file
loader
protected final GroovyClassLoader loader
GroovyTestSuite
public GroovyTestSuite()
main
public static void main(String[] args)
suite
public static Test suite()
loadTestSuite
public void loadTestSuite()
throws Exception
- Throws:
Exception
compile
public Class compile(String fileName)
throws Exception
- Throws:
Exception