gwt:test

Full name:

org.codehaus.mojo:gwt-maven-plugin:1.0:test

Description:

Mimic surefire to run GWTTestCases during integration-test phase, until SUREFIRE-508 is fixed

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Binds by default to the lifecycle phase: integration-test.

Required Parameters

Name Type Since Description
generateDirectory File - Folder where generated-source will be created (automatically added to compile classpath). Default value is: ${project.build.directory}/generated-sources/gwt.

Optional Parameters

Name Type Since Description
excludes String - Comma separated list of ant-style exclusion patterns for GWT integration tests
includes String - Comma separated list of ant-style inclusion patterns for GWT integration tests Default value is: **/*GwtTest.java.
out String - output directory for code generated by GWT for tests Default value is: target/www-test.
reportsDirectory File - Directory for test reports, defaults to surefire one to match the surefire-report plugin Default value is: ${project.build.directory}/surefire-reports.
skip boolean - Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead.
skipExec boolean - DEPRECATED This old parameter is just like skipTests, but bound to the old property maven.test.skip.exec. Use -DskipTests instead; it's shorter.
skipTests boolean - Set this to 'true' to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion.
timeOut int - Time out for test execution in dedicated JVM Default value is: 60.

Parameter Details

excludes:

Comma separated list of ant-style exclusion patterns for GWT integration tests
  • Type: java.lang.String
  • Required: No

generateDirectory:

Folder where generated-source will be created (automatically added to compile classpath).
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/generated-sources/gwt

includes:

Comma separated list of ant-style inclusion patterns for GWT integration tests
  • Type: java.lang.String
  • Required: No
  • Default: **/*GwtTest.java

out:

output directory for code generated by GWT for tests
  • Type: java.lang.String
  • Required: No
  • Default: target/www-test

reportsDirectory:

Directory for test reports, defaults to surefire one to match the surefire-report plugin
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/surefire-reports

skip:

Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead.
  • Type: boolean
  • Required: No
  • Expression: ${maven.test.skip}

skipExec:

DEPRECATED This old parameter is just like skipTests, but bound to the old property maven.test.skip.exec. Use -DskipTests instead; it's shorter.
  • Type: boolean
  • Required: No
  • Expression: ${maven.test.skip.exec}

skipTests:

Set this to 'true' to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion.
  • Type: boolean
  • Required: No
  • Expression: ${skipTests}

timeOut:

Time out for test execution in dedicated JVM
  • Type: int
  • Required: No
  • Default: 60