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
- See Also:
- DevGuideTesting
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringexcludesComma separated list of ant-style exclusion patterns for GWT integration testsprotected java.lang.StringincludesComma separated list of ant-style inclusion patterns for GWT integration tests.-
Fields inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
widgetsetMode
-
Fields inherited from class org.codehaus.mojo.gwt.AbstractGwtMojo
artifactFactory, artifactMetadataSource, classpathBuilder, GWT_GROUP_ID, gwtSdkFirstInClasspath, localRepository, modulePathPrefix, remoteRepositories, resolver, VAADIN_GROUP_ID, warSourceDirectory
-
-
Constructor Summary
Constructors Constructor Description TestMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoExecute()protected java.lang.StringgetGwtArgs()protected voidpostProcessClassPath(java.util.Collection<java.io.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, createWidgetsetRequest, 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, getArtifact, getClasspath, getGenerateDirectory, getGwtDevJar, getGwtUserJar, getJarAndDependencies, getLocalRepository, getOutputDirectory, getProject, getProjectArtifacts, getProjectRuntimeArtifacts, getRemoteRepositories, isGenerator, resolve, setupGenerateDirectory
-
-
-
-
Field Detail
-
includes
@Parameter(defaultValue="**/GwtTest*.java,**/Gwt*Suite.java") protected java.lang.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 java.lang.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 java.lang.String getGwtArgs()
-
postProcessClassPath
protected void postProcessClassPath(java.util.Collection<java.io.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
-
-