Class 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 AbstractGwtShellMojo
    Mimic 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 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.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.

      • excludes

        @Parameter
        protected String excludes
        Comma separated list of ant-style exclusion patterns for GWT integration tests
    • Constructor Detail

      • TestMojo

        public TestMojo()
    • Method Detail

      • doExecute

        public void doExecute()
                       throws org.apache.maven.plugin.MojoExecutionException,
                              org.apache.maven.plugin.MojoFailureException
        Specified by:
        doExecute in class AbstractGwtShellMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • getGwtArgs

        protected String getGwtArgs()
      • setTestTimeOut

        public void setTestTimeOut​(int testTimeOut)
        Parameters:
        testTimeOut - the testTimeOut to set