Hi all,
TestNG provide a command line option to pass test listeners (example, form
testng website: " java -classpath testng.jar;%CLASSPATH%
org.testng.TestNG-listener
org.testng.reporters.DotTestListener test\testng.xml")
How can I pass my listener to maven-surefire-plugin?
My current surefire configuration is:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.2</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
Thanks,
Erez.