Why would in-container execution fail only <package> elements?
I'm programmatically executing testng.xml files by passing them into org.testng.xml.Parser.Parser(InputStream). When I deploy my in container tests to WebLogic, I can execute just about any testng.xml suite except for those that specify a package.
For example:
<suite name="Test Suite" verbose="1">
<test name="Test">
<packages>
<package name="com.mycompany.neto.qa.ws.testng"/>
</packages>
</test>
</suite>
Executes fine when I run it from eclipse, but when I build it into an ear, and deploy it to WebLogic, it apparently can't find any classes to execute. The test-results look like this
<testng-results>
<reporter-output>
</reporter-output>
<suite name="Test Suite">
<groups>
</groups>
<test name="Test">
</test>
</suite>
</testng-results>
I see that the testng.xml file is getting through to the call, but it shows no tests are executed.
<suite name="Test Suite" verbose="1">
<test name="Test">
<packages>
<package name="com.comcast.neto.qa.ws.testng"/>
</packages>
</test>
</suite>
)
xmlSuitList length: 1
packages: 0
[Parser] Running:
Command line suite
===============================================
Test Suite
Total tests run: 0, Failures: 0, Skips: 0
===============================================
--
- Ed