Package groovy.test
Class GroovyTestSuite
- java.lang.Object
-
- junit.framework.TestSuite
-
- groovy.test.GroovyTestSuite
-
- All Implemented Interfaces:
junit.framework.Test
public class GroovyTestSuite extends junit.framework.TestSuiteA 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 application and specifying the script to run on the command line.
java groovy.test.GroovyTestSuite src/test/Foo.groovyOr 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
Fields Modifier and Type Field Description protected static Stringfileprotected GroovyClassLoaderloader
-
Constructor Summary
Constructors Constructor Description GroovyTestSuite()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Classcompile(String fileName)voidloadTestSuite()static voidmain(String[] args)static junit.framework.Testsuite()
-
-
-
Field Detail
-
file
protected static String file
-
loader
protected final GroovyClassLoader loader
-
-