Ok ... so you need to let testng.xml and pom.xml work togther.
pom.xml
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.12.1</version> <executions> <execution> <id>integration-test</id> <goals> <goal>integration-test</goal> </goals> <configuration> <includes> <include>**/*IT.java</include> <include>**/*IT.groovy</include> </includes> <suiteXmlFiles> <suiteXmlFile>testng-asia.xml</suiteXmlFile> <suiteXmlFile>testng-emea.xml</suiteXmlFile> <suiteXmlFile>testng-ny.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </execution> <execution> <id>verify</id> <goals> <goal>verify</goal> </goals> </execution> </executions> </plugin>
Then set the verbose level to testng * .xml
like
<suite name="TEST Ex" verbose="2" preserve-order="true" > <test name="NOTE" preserve-order="true" > <classes> <class name="*IT" /> <class name="*IT"/> </classes> </test> </suite>
source share