javascript:jsunit

Full name:

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

Description:

Goal which runs javascript tests using jsunit framework. Tests can be writter either inside an html page, as documented by jsunit, or simply as javascript.

Attributes:

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

Optional Parameters

Name Type Since Description
browsers String[] - Browsers to run the jsunit tests
excludes String[] - Exclusion pattern.
firefoxPath String - (no description)
Default value is: c:/program files/Mozilla Firefox/firefox.exe.
iePath String - (no description)
Default value is: c:/program files/internet explorer/iexplore.exe.
includes String[] - Inclusion pattern.
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.
port int - The local port to use for the jsunit HTTP server
Default value is: 8080.
reportsDirectory File - Base directory where all reports are written to.
skipTests boolean - Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
testFailureIgnore boolean - Set this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.
workDirectory File - Base directory where jsunit will run.

Parameter Details

browsers:

Browsers to run the jsunit tests
  • Type: java.lang.String[]
  • Required: No

excludes:

Exclusion pattern.
  • Type: java.lang.String[]
  • Required: No

firefoxPath:

(no description)
  • Type: java.lang.String
  • Required: No
  • Expression: ${javascript.jsunit.firefox.path}
  • Default: c:/program files/Mozilla Firefox/firefox.exe

iePath:

(no description)
  • Type: java.lang.String
  • Required: No
  • Expression: ${javascript.jsunit.ie.path}
  • Default: c:/program files/internet explorer/iexplore.exe

includes:

Inclusion pattern.
  • Type: java.lang.String[]
  • Required: No

jasmineTestSourceDirectory:

(no description)
  • Type: java.io.File
  • Required: No
  • Expression: ${testSourceDirectory}
  • 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: ${testSourceDirectory}
  • Default: ${project.basedir}${file.separator}src${file.separator}test${file.separator}javascript

port:

The local port to use for the jsunit HTTP server
  • Type: int
  • Required: No
  • Default: 8080

reportsDirectory:

Base directory where all reports are written to.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}${file.separator}surefire-reports

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}

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}

workDirectory:

Base directory where jsunit will run.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}${file.separator}test-scripts