Compiles test with the appropriate classpath for the given GrailsTestType
Fields inherited from class | Fields |
---|---|
class GrailsProjectCompiler |
EXCLUDED_PATHS |
class BaseSettingsApi |
appClassName, buildEventListener, buildProps, buildSettings, configSlurper, enableProfile, grailsAppName, grailsHome, isInteractive, metadata, metadataFile, pluginSettings, pluginsHome, resolver |
Type | Name and description |
---|---|
static GrailsConsole |
CONSOLE |
GrailsBuildEventListener |
buildEventListener |
BuildSettings |
buildSettings |
Constructor and description |
---|
GrailsProjectTestCompiler
(GrailsBuildEventListener buildEventListener, PluginBuildSettings pluginBuildSettings, java.lang.ClassLoader rootLoader = Thread.currentThread() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
compileTests(GrailsTestType type, java.io.File source, java.io.File dest) Compiles all the test classes for a particular type of test, for example "unit" or "webtest". |
|
groovy.util.AntBuilder |
getAnt() |
|
void |
packageTests(boolean triggerEvents = true) Puts some useful things on the classpath for integration tests. |
Compiles all the test classes for a particular type of test, for example "unit" or "webtest". Assumes that the source files are in the "test/$type" directory. It also compiles the files to distinct directories for each test type: "$testClassesDir/$type".
type
- The type of the tests to compile (not the test phase!)
For example, "unit", "jsunit", "webtest", etc.Puts some useful things on the classpath for integration tests.
Groovy Documentation