I want to lauch all my integration tests (group=inttest) so I write this xml config:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Service Integration Test" parallel="none">
<test verbose="1" name="Service Integration Test">
<groups>
<run>
<include name="inttest.*"/>
</run>
</groups>
</test>
</suite>
But when ran from intellij, no tests are ran. If I add a 'classes' section like this:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Service Integration Test" parallel="none">
<test verbose="1" name="Service Integration Test">
<groups>
<run>
<include name="inttest.*"/>
</run>
</groups>
<classes>
<class name="com.service.MyTestClass" />
</classes>
</test>
</suite>
Then all test of the group 'inttest.*' contained in class com.service.MyTestClass are ran...
What's the problem ?