andromda-cartridge:test

Full name:

org.andromda.maven.plugins:andromda-cartridge-plugin:3.5-SNAPSHOT:test

Description:

Provides the ability to compare cartridge output with existing output.

Attributes:

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

Required Parameters

Name Type Since Description
actualDirectory File - Specifies the directory that contains the "actual" output (meaning the output that was currently generated)
configurationUri String - This is the URI to the AndroMDA configuration file.
expectedDirectory File - Specifies the directory that contains the "expected" output.
expectedOutputArchive File - The location of the archive storing the expected output.

Optional Parameters

Name Type Since Description
binaryOutputSuffixes String - Defines the extensions of binary files, binary files are checked for presence and equality, however they aren't compared as strings, like every other file.
lastModifiedCheck boolean - Set this to 'true' to skip code generation if code has not changed since the latest model date.
propertyFiles List - (no description)
reportDirectory File - Base directory to which the cartridge test report is written
skip boolean - Set this to 'true' to bypass cartridge tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
skipTests boolean - Set this to 'true' to skip running tests, but still compile them. 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.
Default value is: false.

Parameter Details

actualDirectory:

Specifies the directory that contains the "actual" output (meaning the output that was currently generated)
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/cartridge-test/actual

binaryOutputSuffixes:

Defines the extensions of binary files, binary files are checked for presence and equality, however they aren't compared as strings, like every other file.
  • Type: java.lang.String
  • Required: No
  • Expression: jpg,jpeg,gif,png,jar,zip

configurationUri:

This is the URI to the AndroMDA configuration file.
  • Type: java.lang.String
  • Required: Yes
  • Expression: file:${basedir}/conf/test/andromdaUML2.xml

expectedDirectory:

Specifies the directory that contains the "expected" output.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/cartridge-test/expected

expectedOutputArchive:

The location of the archive storing the expected output.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${basedir}/src/test/expected/cartridge-outputUML2.zip

lastModifiedCheck:

Set this to 'true' to skip code generation if code has not changed since the latest model date.
  • Type: boolean
  • Required: No
  • Expression: ${lastModifiedCheck}

propertyFiles:

(no description)
  • Type: java.util.List
  • Required: No
  • Expression: ${project.build.filters}

reportDirectory:

Base directory to which the cartridge test report is written
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/cartridge-test/reports

skip:

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

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}

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