class GroovyTestNGPlugin extends org.savantbuild.plugin.groovy.BaseGroovyPlugin
The Groovy TestNG plugin. The public methods on this class define the features of the plugin.
| Modifiers | Name | Description |
|---|---|---|
class |
GroovyTestNGPlugin.1 |
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
ERROR_MESSAGE |
|
static java.lang.String |
JAVA_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.util.List<java.nio.file.Path> |
groovyLibraries |
boolean |
initialized |
java.nio.file.Path |
javaPath |
java.util.Properties |
javaProperties |
java.util.Properties |
properties |
GroovyTestNGSettings |
settings |
| Constructor and description |
|---|
GroovyTestNGPlugin(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) |
|
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", "integration"]) groovyTestNG.test()
attributes - The named attributes.