From roger.riggs at oracle.com Fri Jun 13 19:14:10 2014 From: roger.riggs at oracle.com (roger riggs) Date: Fri, 13 Jun 2014 15:14:10 -0400 Subject: TestNG and Java command line options Message-ID: <539B4D82.9060702@oracle.com> Hi, Is there a way to configure a jtreg's TEST.root or TEST.properties to run TestNG tests but also provide some command line options? All of the tests would run with the same JVM options and can run in a single VM. Alternatively, is there a way with @library or lib.dirs to include a reference to the testng.jar provided with the jtreg? That would allow the tests to refer to the Assert class for testing assertions or use the TestNG test driver programmatically Thanks, Roger From jonathan.gibbons at oracle.com Fri Jun 13 19:05:13 2014 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Fri, 13 Jun 2014 12:05:13 -0700 Subject: TestNG and Java command line options In-Reply-To: <539B4D82.9060702@oracle.com> References: <539B4D82.9060702@oracle.com> Message-ID: <539B4B69.2050201@oracle.com> Roger, testng.jar will be on the path for TestNG tests. It has to be there if nothing else for the @Test annotations. Do you have reason to believe it is not on the path? -- Jon On 06/13/2014 12:14 PM, roger riggs wrote: > Hi, > > Is there a way to configure a jtreg's TEST.root or TEST.properties to > run > TestNG tests but also provide some command line options? > All of the tests would run with the same JVM options and can run in a > single VM. > > Alternatively, is there a way with @library or lib.dirs to include a > reference > to the testng.jar provided with the jtreg? > That would allow the tests to refer to the Assert class for testing > assertions > or use the TestNG test driver programmatically > > Thanks, Roger > > > From roger.riggs at oracle.com Fri Jun 13 19:40:32 2014 From: roger.riggs at oracle.com (roger riggs) Date: Fri, 13 Jun 2014 15:40:32 -0400 Subject: TestNG and Java command line options In-Reply-To: <539B4B69.2050201@oracle.com> References: <539B4D82.9060702@oracle.com> <539B4B69.2050201@oracle.com> Message-ID: <539B53B0.4000301@oracle.com> Hi, I was experimenting with a hybrid application, not known to jtreg as a TestNG application but using the programmatic TestNG classes to drive the tests and the Assert class for assertions. But the real work issue is being able to use TestNG tests with commercial features enabled. Roger On 6/13/2014 3:05 PM, Jonathan Gibbons wrote: > Roger, > > testng.jar will be on the path for TestNG tests. It has to be there > if nothing else for the @Test annotations. > > Do you have reason to believe it is not on the path? > > -- Jon > > > On 06/13/2014 12:14 PM, roger riggs wrote: >> Hi, >> >> Is there a way to configure a jtreg's TEST.root or TEST.properties >> to run >> TestNG tests but also provide some command line options? >> All of the tests would run with the same JVM options and can run in a >> single VM. >> >> Alternatively, is there a way with @library or lib.dirs to include a >> reference >> to the testng.jar provided with the jtreg? >> That would allow the tests to refer to the Assert class for testing >> assertions >> or use the TestNG test driver programmatically >> >> Thanks, Roger >> >> >> > From jonathan.gibbons at oracle.com Fri Jun 13 19:27:36 2014 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Fri, 13 Jun 2014 12:27:36 -0700 Subject: TestNG and Java command line options In-Reply-To: <539B53B0.4000301@oracle.com> References: <539B4D82.9060702@oracle.com> <539B4B69.2050201@oracle.com> <539B53B0.4000301@oracle.com> Message-ID: <539B50A8.9090303@oracle.com> There is no obvious way to get the jtreg copy of testng.jar on the test's classpath unless it is a TestNG test. -- Jon On 06/13/2014 12:40 PM, roger riggs wrote: > Hi, > > I was experimenting with a hybrid application, not known to jtreg as a > TestNG application > but using the programmatic TestNG classes to drive the tests and the > Assert class for assertions. > > But the real work issue is being able to use TestNG tests with > commercial features enabled. > > Roger > > > On 6/13/2014 3:05 PM, Jonathan Gibbons wrote: >> Roger, >> >> testng.jar will be on the path for TestNG tests. It has to be there >> if nothing else for the @Test annotations. >> >> Do you have reason to believe it is not on the path? >> >> -- Jon >> >> >> On 06/13/2014 12:14 PM, roger riggs wrote: >>> Hi, >>> >>> Is there a way to configure a jtreg's TEST.root or TEST.properties >>> to run >>> TestNG tests but also provide some command line options? >>> All of the tests would run with the same JVM options and can run in >>> a single VM. >>> >>> Alternatively, is there a way with @library or lib.dirs to include a >>> reference >>> to the testng.jar provided with the jtreg? >>> That would allow the tests to refer to the Assert class for testing >>> assertions >>> or use the TestNG test driver programmatically >>> >>> Thanks, Roger >>> >>> >>> >> > From jonathan.gibbons at oracle.com Tue Jun 24 21:56:31 2014 From: jonathan.gibbons at oracle.com (jonathan.gibbons at oracle.com) Date: Tue, 24 Jun 2014 21:56:31 +0000 Subject: hg: code-tools/jtreg: 7900943: Change '7900913: new @requires tag' breaks JTreg in '-gui' mode Message-ID: <201406242156.s5OLuWaQ008501@aojmv0008> Changeset: 29b6dfc9d4e3 Author: jjg Date: 2014-06-24 14:56 -0700 URL: http://hg.openjdk.java.net/code-tools/jtreg/rev/29b6dfc9d4e3 7900943: Change '7900913: new @requires tag' breaks JTreg in '-gui' mode Contributed-by: volker.simonis at gmail.com ! src/share/classes/com/sun/javatest/regtest/RegressionParameters.java