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.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 application
 and specifying the script to run on the command line.
 
 java groovy.test.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 SummaryFields Modifier and Type Field Description protected static java.lang.Stringfileprotected GroovyClassLoaderloader
- 
Constructor SummaryConstructors Constructor Description GroovyTestSuite()
- 
Method SummaryModifier and Type Method Description java.lang.Classcompile(java.lang.String fileName)voidloadTestSuite()static voidmain(java.lang.String[] args)static junit.framework.Testsuite()Methods inherited from class junit.framework.TestSuiteaddTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString, warningMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
- 
Field Details- 
fileprotected static java.lang.String file
- 
loader
 
- 
- 
Constructor Details- 
GroovyTestSuitepublic GroovyTestSuite()
 
- 
- 
Method Details- 
mainpublic static void main(java.lang.String[] args)
- 
suitepublic static junit.framework.Test suite()
- 
loadTestSuitepublic void loadTestSuite() throws java.lang.Exception- Throws:
- java.lang.Exception
 
- 
compilepublic java.lang.Class compile(java.lang.String fileName) throws java.lang.Exception- Throws:
- java.lang.Exception
 
 
-