How to get testng emailable report from Jenkins machine to be attached to Jenkins build mail notification using surefire plugin
When we execute our test cases on our local machines, we will get the testng emailable report which is awesome summary. The same will not get generated on same path when we run our test cases on remote/slave node on Jenkins, we need to use surefire report plugin to fetch the same an get attached to Jenkins build mail notification. Please use the following snippet on your maven projects pom.xml file:- <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration> <testFailureIgnore>true</testFailureIgnore> <properties> <property> <name>usedefaultlisteners</name> ...