From steve.drach at oracle.com Thu Oct 1 18:06:21 2015 From: steve.drach at oracle.com (Steve Drach) Date: Thu, 1 Oct 2015 11:06:21 -0700 Subject: Can jtreg run a TestNG test suite? Message-ID: <2A569F47-01C7-4B5A-86E0-4C9E40F4CB03@oracle.com> 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 From jonathan.gibbons at oracle.com Thu Oct 1 18:16:15 2015 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Thu, 01 Oct 2015 11:16:15 -0700 Subject: Can jtreg run a TestNG test suite? In-Reply-To: <2A569F47-01C7-4B5A-86E0-4C9E40F4CB03@oracle.com> References: <2A569F47-01C7-4B5A-86E0-4C9E40F4CB03@oracle.com> Message-ID: <560D786F.1010206@oracle.com> Steve, 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. -- Jon 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