@Mojo(name="test",
defaultPhase=INTEGRATION_TEST,
requiresDependencyResolution=TEST,
threadSafe=true)
public class TestMojo
extends AbstractGwtShellMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
excludes
Comma separated list of ant-style exclusion patterns for GWT integration tests
|
protected String |
includes
Comma separated list of ant-style inclusion patterns for GWT integration tests.
|
styleartifactFactory, artifactMetadataSource, classpathBuilder, GWT_DEV, GWT_GROUP_ID, GWT_USER, gwtSdkFirstInClasspath, localRepository, modulePathPrefix, remoteRepositories, resolver, warSourceDirectory| Constructor and Description |
|---|
TestMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
doExecute() |
protected String |
getGwtArgs() |
protected void |
postProcessClassPath(Collection<File> classpath)
hook to post-process the dependency-based classpath
|
void |
setTestTimeOut(int testTimeOut) |
addArgumentDeploy, addArgumentGen, addCompileSourceArtifacts, addPersistentUnitCache, createJavaCommand, execute, getExtraJvmArgs, getJvm, getLogLevel, getStyle, setTimeOutgetGwtModules, getModules, readModuleaddClasspathElements, addCompileSourceRoot, getClasspath, getGenerateDirectory, getGwtDevJar, getGwtUserJar, getJarFiles, getLocalRepository, getOutputDirectory, getProject, getProjectArtifacts, getProjectRuntimeArtifacts, getRemoteRepositories, isGenerator, resolve, setupGenerateDirectory@Parameter(defaultValue="**/GwtTest*.java,**/Gwt*Suite.java") protected String includes
**\/*GwtTest.java to match all test class following this naming
convention. Surefire plugin may then ne configured to exclude such tests.
It is recommended to use a TestSuite to run GwtTests, as they require some huge setup and are very slow. Running inside a suite allow to execute the setup only once. The default value is defined with this best practice in mind.
@Parameter protected String excludes
public void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
doExecute in class AbstractGwtShellMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected String getGwtArgs()
protected void postProcessClassPath(Collection<File> classpath)
AbstractGwtShellMojopostProcessClassPath in class AbstractGwtShellMojopublic void setTestTimeOut(int testTimeOut)
testTimeOut - the testTimeOut to setCopyright © 2007–2017 MojoHaus. All rights reserved.