javascript:jasmine

Full name:

org.codehaus.mojo.javascript:javascript-maven-plugin:1.1-softec:jasmine

Description:

(no description)

Attributes:

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

Optional Parameters

Name Type Since Description
browsers String[] - The Browser simulation used for Unit tests (default to FF3.6)
jasmineTargetDir File - (no description)
Default value is: ${project.build.directory}${file.separator}jasmine.
jasmineTestSourceDirectory File - (no description)
Default value is: ${project.basedir}${file.separator}src${file.separator}test${file.separator}javascript.
jsunitTestSourceDirectory File - Base directory for jsunit test.
Default value is: ${project.basedir}${file.separator}src${file.separator}test${file.separator}javascript.
libsDirectory String - The folder for javascripts dependencies
Default value is: lib.
manualSpecRunnerHtmlFileName String - (no description)
Default value is: ManualSpecRunner.html.
mavenProject MavenProject - (no description)
Default value is: ${project}.
packageDir File - (no description)
Default value is: ${project.build.directory}${file.separator}${project.build.finalName}.
packageJavaScriptPath String - (no description)
Default value is: js.
pluginArtifacts List - (no description)
Default value is: ${plugin.artifacts}.
preloadSources List - JavaScript sources (typically vendor/lib dependencies) that need to be loaded before other sources (and specs) in a particular order, these are relative to the ${sourceDirectory} directory! Therefore, if jquery.js is in `${sourceDirectory}/vendor`, you would configure: <preloadSources> <source>vendor/z.js</source> </preloadSources> And z.js would load before all the other sources and specs.
skipTests boolean - Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
sourceDirectory File - (no description)
Default value is: ${project.basedir}${file.separator}src${file.separator}main${file.separator}javascript.
specDirectoryName String - (no description)
Default value is: spec.
specRunnerHtmlFileName String - (no description)
Default value is: SpecRunner.html.
srcDirectoryName String - (no description)
Default value is: src.
testFailureIgnore boolean - Set this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.
useArtifactId boolean - Use the artifactId as folder

Parameter Details

browsers:

The Browser simulation used for Unit tests (default to FF3.6)
  • Type: java.lang.String[]
  • Required: No

jasmineTargetDir:

(no description)
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}${file.separator}jasmine

jasmineTestSourceDirectory:

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

jsunitTestSourceDirectory:

Base directory for jsunit test.
  • Type: java.io.File
  • Required: No
  • Expression: ${jsunitTestSourceDirectory}
  • Default: ${project.basedir}${file.separator}src${file.separator}test${file.separator}javascript

libsDirectory:

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

manualSpecRunnerHtmlFileName:

(no description)
  • Type: java.lang.String
  • Required: No
  • Default: ManualSpecRunner.html

mavenProject:

(no description)
  • Type: org.apache.maven.project.MavenProject
  • Required: No
  • Default: ${project}

packageDir:

(no description)
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}${file.separator}${project.build.finalName}

packageJavaScriptPath:

(no description)
  • Type: java.lang.String
  • Required: No
  • Expression: ${packageJavaScriptPath}
  • Default: js

pluginArtifacts:

(no description)
  • Type: java.util.List
  • Required: No
  • Default: ${plugin.artifacts}

preloadSources:

JavaScript sources (typically vendor/lib dependencies) that need to be loaded before other sources (and specs) in a particular order, these are relative to the ${sourceDirectory} directory! Therefore, if jquery.js is in `${sourceDirectory}/vendor`, you would configure: <preloadSources> <source>vendor/z.js</source> </preloadSources> And z.js would load before all the other sources and specs.
  • Type: java.util.List
  • Required: No

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:

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

specDirectoryName:

(no description)
  • Type: java.lang.String
  • Required: No
  • Default: spec

specRunnerHtmlFileName:

(no description)
  • Type: java.lang.String
  • Required: No
  • Default: SpecRunner.html

srcDirectoryName:

(no description)
  • Type: java.lang.String
  • Required: No
  • Default: src

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}

useArtifactId:

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