test:test

Full name:

npanday.plugin:maven-test-plugin:1.2:test

Description:

Runs NUnit tests

Attributes:

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

Required Parameters

Name Type Since Description
nUnitResultErrorOutputPath File - nUnitResultErrorOutputPath
Default value is: ${project.build.directory}/nunit-reports/TEST-${project.build.finalName}-ERROR.txt.
nUnitResultOutputPath File - nUnitResultOutputPath
Default value is: ${project.build.directory}/nunit-reports/TEST-${project.build.finalName}-RESULTS.txt.
nUnitXmlFilePath File - nUnitXmlFilePath
Default value is: ${project.build.directory}/nunit-reports/TEST-${project.build.finalName}.xml.

Optional Parameters

Name Type Since Description
integrationTest boolean - The artifact acts as an Integration test project
nunitCommand String - Specify the name of the NUnit command to be run, from within the nunitHome/bin directory.
nunitHome String - The home of nunit. Use this if you 1) have not added nunit to your path and you only have MS installed; or 2) have mono installed and want to use another version of nunit.
reportsDirectory String - Directory where reports are written.
Default value is: ${project.build.directory}/nunit-reports.
skipTest boolean - Skips unit test
Default value is: false.
testAssemblyPath String - Test Assembly Location
Default value is: ${project.build.directory}/test-assemblies.
xmlConsole boolean - Display XML to the console
Default value is: false.

Parameter Details

integrationTest:

The artifact acts as an Integration test project
  • Type: boolean
  • Required: No

nUnitResultErrorOutputPath:

nUnitResultErrorOutputPath
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/nunit-reports/TEST-${project.build.finalName}-ERROR.txt

nUnitResultOutputPath:

nUnitResultOutputPath
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/nunit-reports/TEST-${project.build.finalName}-RESULTS.txt

nUnitXmlFilePath:

nUnitXmlFilePath
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/nunit-reports/TEST-${project.build.finalName}.xml

nunitCommand:

Specify the name of the NUnit command to be run, from within the nunitHome/bin directory.
  • Type: java.lang.String
  • Required: No

nunitHome:

The home of nunit. Use this if you 1) have not added nunit to your path and you only have MS installed; or 2) have mono installed and want to use another version of nunit.
  • Type: java.lang.String
  • Required: No

reportsDirectory:

Directory where reports are written.
  • Type: java.lang.String
  • Required: No
  • Expression: ${reportsDirectory}
  • Default: ${project.build.directory}/nunit-reports

skipTest:

Skips unit test
  • Type: boolean
  • Required: No
  • Expression: ${skipTests}
  • Default: false

testAssemblyPath:

Test Assembly Location
  • Type: java.lang.String
  • Required: No
  • Expression: ${testAssemblyPath}
  • Default: ${project.build.directory}/test-assemblies

xmlConsole:

Display XML to the console
  • Type: boolean
  • Required: No
  • Expression: ${xmlConsole}
  • Default: false