Powered by:
SourceForge.net Built by Maven
Sponsored by:
AlphaCSP

jade-testng:test

runs the unit tests of a maven component. @author enahir

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: test
  • Automatically executes within the lifecycle phase: test

Optional Parameters

Name Type Description
projectHelper MavenProjectHelper project-helper instance, used to make addition of resources simpler
artifactResolver ArtifactResolver Used to look up Artifacts in the local or remote repository.
artifactFactory ArtifactFactory Used to look up Artifacts in the local or remote repository.
localRepository ArtifactRepository The local repository
pluginArtifacts Artifact> The plugin dependency artifacts
maven2AntManager Maven2AntManager The manager to link maven project with an Ant project.
nameProvider ProjectNameProvider No description.
skip boolean Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion. Default value is false.
failureProperty String The name of a property to set in the event of a failure. It is used only if the haltonfailure is not set.
haltonfailure boolean Stop the build process if a failure has occurred during the test run. Default is false. Default value is false.
haltonskipped boolean Stop the build process if there is at least on skipped test. Default is false. Default value is false.
dumpcommand boolean Print the TestNG launcher command. Default is false. Default value is false.
groups String The list of groups to run, separated by spaces or commas.
excludedgroups String The list of groups to exclude, separated by spaces or commas.
jvm String The JVM to use, which will be run by Runtime.exec(). Default is java. Default value is java.
listeners String> List of fully qualified classes which need to implement Either org.testng.ITestListener or org.testng.IReporter
reportsDir File Directory for reports output. Default is ${project.build.directory}/surefire-reports. Default value is ${project.build.directory}/surefire-reports.
basedir File The base directory of the project being tested. Default value is ${basedir}.
classesDirectory File The directory containing generated classes of the project being tested. Default value is ${project.build.outputDirectory}.
testClassesDirectory File The directory containing generated test classes of the project being tested. Default value is ${project.build.testOutputDirectory}.
excludeTestClasses String> List of classes/patterns to be excluded from the test classes. Note: this list is added to a file set created for the testClassesDirectory
includeTestClasses String> List of classes/patterns to be included in the test classes. Note: this list is added to a file set created for the testClassesDirectory
skippedProperty String The name of a property to set in the event of a skipped test. It is used only if the haltonskipped is not set.
suiteRunnerClass String A fully qualified name of a TestNG starter. Defaults to org.testng.TestNG Default value is org.testng.TestNG.
parallel String The parallel mode to use for running the tests - either methods or tests. When you use the parallel attribute, TestNG will try to run all your test methods in separate threads, except for methods that depend on each other, which will be run in the same thread in order to respect their order of execution. Default is false. Default value is false.
threadCount String The number of threads to use for this run. Ignored unless the parallel mode is also specified. Default is 1. Default value is 1.
timeout int The maximum time out in milliseconds that all the tests should run under. Default value is 0.
useDefaultListeners boolean Whether the default listeners and reporters should be used. Default is true Default value is true.
suiteXmlFiles String> List of TestNG suite xml file locations.
suitename String Sets the default name of the test suite, if one is not specified in a suite xml file or in the source code. Default is "${project.groupId}-${project.artifactId}" Default value is ${project.groupId}-${project.artifactId}.
testname String Sets the default name of the test, if one is not specified in a suite xml file or in the source code. Default is "TestNG Test" Default value is ${project.artifactId}.
junit boolean Set to true to make TestNG run Junit tests. Default value is false.
testJar File Path to jar file contains set of test classes
dumpSystemProps boolean Write System properties to System.out Default value is false.
dumpEnvironmentProps boolean Write Environment properties to System.out Default value is false.
systemProperties String> Map of key-value pairs or properties to pass to the testng task
verbose Integer Log level.

Parameter Details

projectHelper project-helper instance, used to make addition of resources simpler
  • Type: org.apache.maven.project.MavenProjectHelper
  • Required: No

artifactResolver Used to look up Artifacts in the local or remote repository.
  • Type: org.apache.maven.artifact.resolver.ArtifactResolver
  • Required: No

artifactFactory Used to look up Artifacts in the local or remote repository.
  • Type: org.apache.maven.artifact.factory.ArtifactFactory
  • Required: No

localRepository The local repository
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: No
  • Expression: ${localRepository}

pluginArtifacts The plugin dependency artifacts
  • Type: java.util.List<org.apache.maven.artifact.Artifact>
  • Required: No
  • Expression: ${plugin.artifacts}

maven2AntManager The manager to link maven project with an Ant project.
  • Type: org.jfrog.jade.plugins.common.ant.Maven2AntManager
  • Required: No

nameProvider No Description.
  • Type: org.jfrog.jade.plugins.common.naming.ProjectNameProvider
  • Required: No

skip Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
  • Type: boolean
  • Required: No
  • Default: false

failureProperty The name of a property to set in the event of a failure. It is used only if the haltonfailure is not set.
  • Type: java.lang.String
  • Required: No

haltonfailure Stop the build process if a failure has occurred during the test run. Default is false.
  • Type: boolean
  • Required: No
  • Default: false

haltonskipped Stop the build process if there is at least on skipped test. Default is false.
  • Type: boolean
  • Required: No
  • Default: false

dumpcommand Print the TestNG launcher command. Default is false.
  • Type: boolean
  • Required: No
  • Default: false

groups The list of groups to run, separated by spaces or commas.
  • Type: java.lang.String
  • Required: No

excludedgroups The list of groups to exclude, separated by spaces or commas.
  • Type: java.lang.String
  • Required: No

jvm The JVM to use, which will be run by Runtime.exec(). Default is java.
  • Type: java.lang.String
  • Required: No
  • Default: java

listeners List of fully qualified classes which need to implement Either org.testng.ITestListener or org.testng.IReporter
  • Type: java.util.List<java.lang.String>
  • Required: No

reportsDir Directory for reports output. Default is ${project.build.directory}/surefire-reports.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/surefire-reports

basedir The base directory of the project being tested.
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}

classesDirectory The directory containing generated classes of the project being tested.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.outputDirectory}

testClassesDirectory The directory containing generated test classes of the project being tested.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.testOutputDirectory}

excludeTestClasses List of classes/patterns to be excluded from the test classes. Note: this list is added to a file set created for the testClassesDirectory
  • Type: java.util.List<java.lang.String>
  • Required: No

includeTestClasses List of classes/patterns to be included in the test classes. Note: this list is added to a file set created for the testClassesDirectory
  • Type: java.util.List<java.lang.String>
  • Required: No

skippedProperty The name of a property to set in the event of a skipped test. It is used only if the haltonskipped is not set.
  • Type: java.lang.String
  • Required: No

suiteRunnerClass A fully qualified name of a TestNG starter. Defaults to org.testng.TestNG
  • Type: java.lang.String
  • Required: No
  • Default: org.testng.TestNG

parallel The parallel mode to use for running the tests - either methods or tests. When you use the parallel attribute, TestNG will try to run all your test methods in separate threads, except for methods that depend on each other, which will be run in the same thread in order to respect their order of execution. Default is false.
  • Type: java.lang.String
  • Required: No
  • Default: false

threadCount The number of threads to use for this run. Ignored unless the parallel mode is also specified. Default is 1.
  • Type: java.lang.String
  • Required: No
  • Default: 1

timeout The maximum time out in milliseconds that all the tests should run under.
  • Type: int
  • Required: No
  • Default: 0

useDefaultListeners Whether the default listeners and reporters should be used. Default is true
  • Type: boolean
  • Required: No
  • Default: true

suiteXmlFiles List of TestNG suite xml file locations.
  • Type: java.util.List<java.lang.String>
  • Required: No

suitename Sets the default name of the test suite, if one is not specified in a suite xml file or in the source code. Default is "${project.groupId}-${project.artifactId}"
  • Type: java.lang.String
  • Required: No
  • Default: ${project.groupId}-${project.artifactId}

testname Sets the default name of the test, if one is not specified in a suite xml file or in the source code. Default is "TestNG Test"
  • Type: java.lang.String
  • Required: No
  • Default: ${project.artifactId}

junit Set to true to make TestNG run Junit tests.
  • Type: boolean
  • Required: No
  • Default: false

testJar Path to jar file contains set of test classes
  • Type: java.io.File
  • Required: No

dumpSystemProps Write System properties to System.out
  • Type: boolean
  • Required: No
  • Default: false

dumpEnvironmentProps Write Environment properties to System.out
  • Type: boolean
  • Required: No
  • Default: false

systemProperties Map of key-value pairs or properties to pass to the testng task
  • Type: java.util.Map<java.lang.String,java.lang.String>
  • Required: No

verbose Log level.
  • Type: java.lang.Integer
  • Required: No