Package org.codehaus.mojo.gwt.shell
Class TestMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.gwt.AbstractGwtMojo
-
- org.codehaus.mojo.gwt.AbstractGwtModuleMojo
-
- org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
-
- org.codehaus.mojo.gwt.shell.TestMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,GwtModuleReader
- Direct Known Subclasses:
EclipseTestMojo
@Mojo(name="test", defaultPhase=INTEGRATION_TEST, requiresDependencyResolution=TEST, threadSafe=true) public class TestMojo extends AbstractGwtShellMojoMimic surefire to run GWTTestCases during integration-test phase, until SUREFIRE-508 is fixed- Version:
- $Id: TestMojo.java 9466 2009-04-16 12:03:15Z ndeloof $
- Author:
- Nicolas De Loof
-
-
Field Summary
Fields Modifier and Type Field Description protected StringexcludesComma separated list of ant-style exclusion patterns for GWT integration testsprotected StringincludesComma separated list of ant-style inclusion patterns for GWT integration tests.-
Fields inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
style
-
Fields inherited from class org.codehaus.mojo.gwt.AbstractGwtMojo
artifactFactory, artifactMetadataSource, classpathBuilder, GWT_DEV, GWT_GROUP_ID, GWT_USER, gwtSdkFirstInClasspath, localRepository, modulePathPrefix, remoteRepositories, resolver, session, warSourceDirectory
-
-
Constructor Summary
Constructors Constructor Description TestMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoExecute()protected StringgetGwtArgs()protected voidpostProcessClassPath(Collection<File> classpath)hook to post-process the dependency-based classpathvoidsetTestTimeOut(int testTimeOut)-
Methods inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
addArgumentDeploy, addArgumentGen, addCompileSourceArtifacts, addPersistentUnitCache, createJavaCommand, execute, getExtraJvmArgs, getJvm, getLogLevel, getStyle, setTimeOut
-
Methods inherited from class org.codehaus.mojo.gwt.AbstractGwtModuleMojo
getGwtModules, getModules, readModule
-
Methods inherited from class org.codehaus.mojo.gwt.AbstractGwtMojo
addClasspathElements, addCompileSourceRoot, getClasspath, getGenerateDirectory, getGwtDevJar, getGwtUserJar, getJarFiles, getLocalRepository, getOutputDirectory, getProject, getProjectArtifacts, getProjectRuntimeArtifacts, getRemoteRepositories, isGenerator, resolve, setupGenerateDirectory
-
-
-
-
Field Detail
-
includes
@Parameter(defaultValue="**/GwtTest*.java,**/Gwt*Suite.java") protected String includes
Comma separated list of ant-style inclusion patterns for GWT integration tests. For example, can be set to**\/*GwtTest.javato 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.
-
excludes
@Parameter protected String excludes
Comma separated list of ant-style exclusion patterns for GWT integration tests
-
-
Method Detail
-
doExecute
public void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
doExecutein classAbstractGwtShellMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getGwtArgs
protected String getGwtArgs()
-
postProcessClassPath
protected void postProcessClassPath(Collection<File> classpath)
Description copied from class:AbstractGwtShellMojohook to post-process the dependency-based classpath- Overrides:
postProcessClassPathin classAbstractGwtShellMojo
-
setTestTimeOut
public void setTestTimeOut(int testTimeOut)
- Parameters:
testTimeOut- the testTimeOut to set
-
-