class PluginTestPlugin extends java.lang.Object
Gradle plug-in to build Eclipse test bundles and launch tests.
It contributes the following DSL to describe a testing project:
pluginTest {
fragmentHost 'host.plugin.id'
applicationName 'org.eclipse.pde.junit.runtime.coretestapplication'
optionsFile file('.options')
}
If the test project is an Eclipse plug-in fragment, then the the fragmentHost specifies
the host plug-in's ID (not mandatory). The applicationName is the PDE test runner class.
The optionsFile specifies a file containing extra arguments for the testing (not
mandatory).
The tests are launched with PDE. The process is: (1) Copy the target platform to the build
folder. (2) Install the test plug-in and it's dependencies into the copied target platform with
P2. (3) Launch Eclipse with the PDE testing application (4) Collect the test results.
The way how the tests are collected from the testing project and how the results are collected is
defined in the testing package.
More information on the PDE testing automation:
http://www.eclipse.org/articles/Article-PDEJUnitAntAutomation.
| Modifiers | Name | Description |
|---|---|---|
org.gradle.api.internal.file.FileResolver |
fileResolver |
| Type | Name and description |
|---|---|
static java.lang.String |
DSL_EXTENSION_NAME |
static java.lang.Object |
TASK_NAME_PLUGIN_TEST |
| Constructor and description |
|---|
PluginTestPlugin
(org.gradle.api.internal.file.FileResolver fileResolver) |
| Type | Name and description |
|---|---|
static void |
addTaskCreatePluginTest(org.gradle.api.Project project) |
void |
apply(org.gradle.api.Project project) |
static void |
beforePluginTest(org.gradle.api.Project project, Config config, java.io.File testDistributionDir, java.io.File additionalPluginsDir) |
static void |
configureProject(org.gradle.api.Project project) |
static void |
copyTargetPlatformToBuildFolder(org.gradle.api.Project project, Config config, java.io.File distro) |
static void |
installDependenciesIntoTargetPlatform(org.gradle.api.Project project, Config config, java.io.File additionalPluginsDir, java.io.File testDistributionDir) |
static void |
validateDslBeforeBuildStarts(org.gradle.api.Project project) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation