I always built my XML file on the fly using the TesNG API. How are you specifying an XML file when running programmatically?
Mike
On Wednesday, July 4, 2012 1:25:15 AM UTC-7, mangan77 wrote:
Hi!
Having problems when running tests programmatically using a XML config file. It seems that the tests are not found when I use the following:
<packages>
<package name="ibe.*"/>
</packages>
But when classes explicitly declared it works just fine:
<classes>
<class name="ibe.car.CarSearchTest"/>
</classes>
How come this doesn't work?
Classes are in the classpath, otherwise the second part wouldn't work either, right?