Runs TestNG with the XML config file or files provided to the primary constructor, passing reports to the specified Reporter
.
Runs TestNG with the XML config file or files provided to the primary constructor, passing reports to the specified Reporter
.
If present (Some), then only the method with the supplied name is executed and groups will be ignored.
the Args
for this run
Throws UnsupportedOperationException
, because this method is unused by this
trait, given this trait's run
method delegates to TestNG to run
its tests.
Throws UnsupportedOperationException
, because this method is unused by this
trait, given this trait's run
method delegates to TestNG to run
its tests.
The main purpose of this method implementation is to render a compiler error an attempt
to mix in a trait that overrides runNestedSuites
. Because this
trait does not actually use runNestedSuites
, the attempt to mix
in behavior would very likely not work.
the Args
for this run
always.
Throws UnsupportedOperationException
, because this method is unused by this
trait, given this trait's run
method delegates to TestNG to run
its tests.
Throws UnsupportedOperationException
, because this method is unused by this
trait, given this trait's run
method delegates to TestNG to run
its tests.
The main purpose of this method implementation is to render a compiler error an attempt
to mix in a trait that overrides runTest
. Because this
trait does not actually use runTest
, the attempt to mix
in behavior would very likely not work.
the name of one test to run.
the Args
for this run
always.
Throws UnsupportedOperationException
, because this method is unused by this
trait, given this trait's run
method delegates to TestNG to run
its tests.
Throws UnsupportedOperationException
, because this method is unused by this
trait, given this trait's run
method delegates to TestNG to run
its tests.
The main purpose of this method implementation is to render a compiler error an attempt
to mix in a trait that overrides runTests
. Because this
trait does not actually use runTests
, the attempt to mix
in behavior would very likely not work.
an optional name of one test to run. If None
, all relevant tests should be run.
I.e., None
acts like a wildcard that means run all relevant tests in this Suite
.
the Args
for this run
always.
Suite style name.
Suite style name.
(Since version 3.1.0) The conversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.
(Since version 3.1.0) The convertEquivalenceToAToBConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.
(Since version 3.1.0) The convertEquivalenceToBToAConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.
(Since version 3.1.0) The lowPriorityConversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.
Suite that wraps existing TestNG test suites, described by TestNG XML config files. This class allows existing TestNG tests written in Java to be run by ScalaTest.
One way to use this class is to extend it and provide a list of one or more names of TestNG XML config file names to run. Here's an example:
You can also specify TestNG XML config files on
Runner
's command line with-t
parameters. See the documentation forRunner
for more information.To execute
TestNGWrapperSuite
s with ScalaTest'sRunner
, you must include TestNG's jar file on the class path or runpath. This version ofTestNGSuite
was tested with TestNG version 6.3.1.