Execute this TestNGSuite
.
Execute this TestNGSuite
.
an optional name of one test to execute. If None
, this class will execute all relevant tests.
I.e., None
acts like a wildcard that means execute all relevant tests in this TestNGSuite
.
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.
The parameterless execute method has been deprecated and will be removed in a future version of ScalaTest. Please invoke execute with empty parens instead: execute().
The trap method is no longer needed for demos in the REPL, which now abreviates stack traces, and will be removed in a future version of ScalaTest
A suite of tests that can be run with either TestNG or ScalaTest. This class allows you to mark any method as a test using TestNG's
@Test
annotation, and supports all other TestNG annotations. Here's an example:To execute
TestNGSuite
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.