javascript:prepare-jsunit-tests

Full name:

org.codehaus.mojo.javascript:javascript-maven-plugin:1.1-softec:prepare-jsunit-tests

Description:

Goal which copies scripts to the test-script directory.

Attributes:

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

Optional Parameters

Name Type Since Description
jasmineTestSourceDirectory File - (no description)
Default value is: ${project.basedir}${file.separator}src${file.separator}test${file.separator}javascript.
jsunitTestSourceDirectory File - Location of the source files.
Default value is: ${basedir}/src/test/javascript.
libsDirectory String - The folder for javascripts dependencies
Default value is: lib.
skipTests boolean - Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
sourceDirectory File - Location of the source files.
Default value is: ${basedir}/src/main/javascript.
useArtifactId boolean - Use the artifactId as folder
workDirectory File - Location of the source files.
Default value is: ${project.build.directory}/test-scripts.

Parameter Details

jasmineTestSourceDirectory:

(no description)
  • Type: java.io.File
  • Required: No
  • Expression: ${testSourceDirectory}
  • Default: ${project.basedir}${file.separator}src${file.separator}test${file.separator}javascript

jsunitTestSourceDirectory:

Location of the source files.
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/test/javascript

libsDirectory:

The folder for javascripts dependencies
  • Type: java.lang.String
  • Required: No
  • Expression: ${scripts}
  • Default: lib

skipTests:

Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
  • Type: boolean
  • Required: No
  • Expression: ${maven.test.skip}

sourceDirectory:

Location of the source files.
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/main/javascript

useArtifactId:

Use the artifactId as folder
  • Type: boolean
  • Required: No

workDirectory:

Location of the source files.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/test-scripts