|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.TestSuite groovy.util.AllTestSuite
public class AllTestSuite extends TestSuite
AllTestSuite can be used in extension of GroovyTestSuite to execute TestCases written in Groovy from inside a Java IDE. AllTestSuite collects all files below a given directory that comply to a given pattern. From these files, a TestSuite is constructed that can be run via an IDE graphical Test runner. The files are assumed to be Groovy source files and be either a TestCase or a Script that can be wrapped transparently into a TestCase. The directory and the pattern can be set via System properties (see this classes' constants for details.)
When setting the loglevel of this class to FINEST, all file loading will be logged. See also groovy.util.AllTestSuiteTest.groovyField Summary | |
---|---|
static java.lang.String |
SYSPROP_TEST_DIR
The System Property to set as base directory for collection of Test Cases. |
static java.lang.String |
SYSPROP_TEST_EXCLUDES_PATTERN
The System Property to set as a filename excludes pattern for collection of Test Cases. |
static java.lang.String |
SYSPROP_TEST_PATTERN
The System Property to set as the filename pattern for collection of Test Cases. |
Method Summary | |
---|---|
protected java.lang.Class
|
compile(java.lang.String filename)
|
protected void
|
loadTest(java.lang.String filename)
|
static Test
|
suite()
|
static Test
|
suite(java.lang.String basedir, java.lang.String pattern)
|
static Test
|
suite(java.lang.String basedir, java.lang.String pattern, java.lang.String excludesPattern)
|
Field Detail |
---|
public static final java.lang.String SYSPROP_TEST_DIR
public static final java.lang.String SYSPROP_TEST_EXCLUDES_PATTERN
public static final java.lang.String SYSPROP_TEST_PATTERN
Method Detail |
---|
protected java.lang.Class compile(java.lang.String filename)
protected void loadTest(String filename) throws CompilationFailedException, IOException { protected void loadTest(java.lang.String filename)
public static Test suite()
public static Test suite(java.lang.String basedir, java.lang.String pattern)
public static Test suite(java.lang.String basedir, java.lang.String pattern, java.lang.String excludesPattern)
Groovy Documentation