Fork me on GitHub

play2:test

Full name:

de.akquinet.innovation.play2:play2-maven-plugin:1.2.2-SNAPSHOT:test

Description:

Run the test of the Play application. The tests are run using play test

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: test.

Optional Parameters

Name Type Since Description
baseDirectory File - Base directory of the project.
buildDirectory File - Directory containing the build files.
play2Home String - The PLAY2_HOME path is taken from this setting, if not found as a Java system property (-DPLAY2_HOME). Refers to the PLAY2_HOME environment variable by default. So that means that the PLAY2_HOME can be given using:
  1. A system variable defined by the system or with -DPLAY2_HOME=...
  2. The play2Home configuration property
  3. The PLAY2_HOME environment property

play2SystemProperties Properties - Allows customization of the play execution System properties.
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.
Default value is: false.
skipTests boolean - Set this to "true" to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion.
Default value is: false.
testFailureIgnore boolean - Set this to "true" to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.
Default value is: false.
timeout long - Sets a timeout to the play invocation (in milliseconds). If not set (or set to -1, the plugin waits until the underlying play process completes. If set, the plugin kills the underlying play process when the timeout is reached, and it fails the build.
Default value is: -1.

Parameter Details

baseDirectory:

Base directory of the project.
  • Type: java.io.File
  • Required: No
  • Expression: ${basedir}

buildDirectory:

Directory containing the build files.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}

play2Home:

The PLAY2_HOME path is taken from this setting, if not found as a Java system property (-DPLAY2_HOME). Refers to the PLAY2_HOME environment variable by default. So that means that the PLAY2_HOME can be given using:
  1. A system variable defined by the system or with -DPLAY2_HOME=...
  2. The play2Home configuration property
  3. The PLAY2_HOME environment property
  • Type: java.lang.String
  • Required: No
  • Expression: ${env.PLAY2_HOME}

play2SystemProperties:

Allows customization of the play execution System properties.
  • Type: java.util.Properties
  • Required: No

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}
  • Default: false

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}
  • Default: false

testFailureIgnore:

Set this to "true" to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.
  • Type: boolean
  • Required: No
  • Expression: ${maven.test.failure.ignore}
  • Default: false

timeout:

Sets a timeout to the play invocation (in milliseconds). If not set (or set to -1, the plugin waits until the underlying play process completes. If set, the plugin kills the underlying play process when the timeout is reached, and it fails the build.
  • Type: long
  • Required: No
  • Expression: ${play2timeout}
  • Default: -1