A suite of tests that can be run with either TestNG or ScalaTest.
Implementation trait for class TestNGSuite
, which represents
a suite of tests that can be run with either TestNG or ScalaTest.
Implementation trait for class TestNGSuite
, which represents
a suite of tests that can be run with either TestNG or ScalaTest.
TestNGSuite
is a class, not a
trait, to minimize compile time given there is a slight compiler overhead to
mixing in traits compared to extending classes. If you need to mix the
behavior of TestNGSuite
into some other class, you can use this
trait instead, because class TestNGSuite
does nothing more than
extend this trait.
See the documentation of the class for a detailed
overview of TestNGSuite
.
Suite that wraps existing TestNG test suites, described by TestNG XML config files.
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:
class MyWrapperSuite extends TestNGWrapperSuite( List("oneTest.xml", "twoTest.xml", "redTest.xml", "blueTest.xml") )
You can also specify TestNG XML config files on Runner
's command line with -t
parameters. See
the documentation for Runner
for more information.
To execute TestNGWrapperSuite
s with ScalaTest's Runner
, you must include TestNG's jar file on the class path or runpath.
This version of TestNGSuite
was tested with TestNG version 6.3.1.
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.