class JavaTestNGPlugin extends org.savantbuild.plugin.groovy.BaseGroovyPlugin
The Java TestNG plugin. The public methods on this class define the features of the plugin.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
ERROR_MESSAGE |
| Fields inherited from class | Fields |
|---|---|
class org.savantbuild.plugin.groovy.BaseGroovyPlugin |
output, project, runtimeConfiguration |
| Type | Name and description |
|---|---|
org.savantbuild.plugin.dep.DependencyPlugin |
dependencyPlugin |
java.nio.file.Path |
javaPath |
java.util.Properties |
properties |
JavaTestNGSettings |
settings |
| Constructor and description |
|---|
JavaTestNGPlugin(org.savantbuild.domain.Project project, org.savantbuild.runtime.RuntimeConfiguration runtimeConfiguration, org.savantbuild.output.Output output) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.nio.file.Path |
buildXMLFile(java.util.List<java.lang.String> groups, java.util.List<java.lang.String> excludes) |
|
java.lang.String |
getCodeCoverageArguments() |
|
java.io.File |
getCodeCoverageFile() |
|
boolean |
includeEntry(java.util.jar.JarEntry entry) |
|
java.lang.Object |
produceCodeCoverageReports() |
|
void |
test(java.util.Map<java.lang.String, java.lang.Object> attributes)Runs the TestNG tests. |
| Methods inherited from class | Name |
|---|---|
class org.savantbuild.plugin.groovy.BaseGroovyPlugin |
org.savantbuild.plugin.groovy.BaseGroovyPlugin#getMetaClass(), org.savantbuild.plugin.groovy.BaseGroovyPlugin#setMetaClass(groovy.lang.MetaClass), org.savantbuild.plugin.groovy.BaseGroovyPlugin#wait(long, int), org.savantbuild.plugin.groovy.BaseGroovyPlugin#wait(), org.savantbuild.plugin.groovy.BaseGroovyPlugin#wait(long), org.savantbuild.plugin.groovy.BaseGroovyPlugin#equals(java.lang.Object), org.savantbuild.plugin.groovy.BaseGroovyPlugin#toString(), org.savantbuild.plugin.groovy.BaseGroovyPlugin#hashCode(), org.savantbuild.plugin.groovy.BaseGroovyPlugin#getClass(), org.savantbuild.plugin.groovy.BaseGroovyPlugin#notify(), org.savantbuild.plugin.groovy.BaseGroovyPlugin#notifyAll(), org.savantbuild.plugin.groovy.BaseGroovyPlugin#getProperty(java.lang.String), org.savantbuild.plugin.groovy.BaseGroovyPlugin#setProperty(java.lang.String, java.lang.Object), org.savantbuild.plugin.groovy.BaseGroovyPlugin#invokeMethod(java.lang.String, java.lang.Object) |
Runs the TestNG tests. The groups are optional, but if they are specified, only the tests in those groups are run. Otherwise, all the tests are run. Here is an example calling this method:
groovyTestNG.test(groups: ["unit", "performance"])Supported command line options: --onlyFailed only runs test that failed on previous test run --onlyChanges only run tests for java classes and test classes changed on this PR or branch --commitRange=
attributes - The named attributes.