I try to run a test suite using XML and TestNG, but I always get the same message using both: Eclipse and the command line:
[TestNG] Running:
/Users/achavez/Programs/Selenium/java/src/tests/resources/testng.xml
TestingSuite1
Total tests run: 0, Failures: 0, Skips: 0
The file reads correctly, but it seems that the tests are not running.
This is the contents of my testng.xml:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="TestingSuite1" verbose="1">
<test name="Test1" >
<packages>
<package name="tests"/>
</packages>
</test>
</suite>
and this is how my directory structure in Eclipse looks like:

In addition, I am also trying to run a test suite through the command line:
java -jar /Applications/Zend\ Studio.app/Contents/Resources/Java/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar src/tests/resources/testng.xml
I tried cleaning up the project via eclipse and that didn't seem to help. I also tried to run:
mvn cleanbut that didn't help either.
Any help sent to me in the right direction would be greatly appreciated!
source
share