TestNG and Java command line options

Jonathan Gibbons jonathan.gibbons at oracle.com
Fri Jun 13 19:27:36 UTC 2014


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
>>>
>>>
>>>
>>
>



More information about the jtreg-dev mailing list