javascript:prepare-titanium-jasmine-tests

Full name:

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

Description:

This Mojo create the titanium project structure required to execute the jasmine tests.

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.

Required Parameters

Name Type Since Description
platform String -

The platform for which the code should be packaged.

Supported platforms are:

android
Package for the android platform.
iphone
Package for the iPhone platform.
ipad
Package for the iPad platform.
universal
Package for iPhone and iPad.

Optional Parameters

Name Type Since Description
jasmineTestSourceDirectory File - The location of the javascript test files
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.
outputDirectory File - The output directory of the assembled js file.
Default value is: ${project.build.outputDirectory}.
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 - Location of the source files.
Default value is: ${basedir}/src/main/javascript.
specExcludes String[] - Exclusion pattern.

Allow to specify which jasmine spec files should be excluded.


specsDirectory String - The output folder for jasmine spec files.
Default value is: specs.
testOutputDirectory File - The output directory of the test files.
Default value is: ${project.build.testOutputDirectory}.
useArtifactId boolean - Use the artifactId as folder

Parameter Details

jasmineTestSourceDirectory:

The location of the javascript test files
  • 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

outputDirectory:

The output directory of the assembled js file.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.outputDirectory}

platform:

The platform for which the code should be packaged.

Supported platforms are:

android
Package for the android platform.
iphone
Package for the iPhone platform.
ipad
Package for the iPad platform.
universal
Package for iPhone and iPad.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${platform}

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:

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

specExcludes:

Exclusion pattern.

Allow to specify which jasmine spec files should be excluded.

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

specsDirectory:

The output folder for jasmine spec files.
  • Type: java.lang.String
  • Required: No
  • Expression: ${specs}
  • Default: specs

testOutputDirectory:

The output directory of the test files.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.testOutputDirectory}

useArtifactId:

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