Can jtreg run a TestNG test suite?
jonathan.gibbons at oracle.com
Thu Oct 1 18:16:15 UTC 2015
Sorry, jtreg does not provide that level of TestNG integration.
jtreg can either run individual TestNG tests that are interspersed
amongst other jtreg tests, or it can run all the classes in a nominated
directory as TestNG tests.
If you want to do complex setup and cleanup such as you describe, you'll
have to do it yourself, within the context of the test.
On 10/01/2015 11:06 AM, Steve Drach wrote:
> The jtreg documentation is rather sparse and I can’t infer the answer to my question. Perhaps somebody knows how to do this with jtreq/TestNG
> 1. Run a non-test class that creates some expensive to create resources, using compilers, jar builder, jar signers and the like
> 2. Run two or more class with embedded test methods
> 3. remove the resources created in step 1
> I think I can do this with a TestNG test suite, defined by an XML file, but I don’t see how to specify that jtreg run the test suite
More information about the jtreg-use