Last active
August 29, 2015 14:15
Generate ReportNG report using Maven
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelversion>4.0.0</modelversion> | |
<groupid>com.test.maven</groupid> | |
<artifactid>sample-maven-build</artifactid> | |
<version>1</version> | |
<name>sample-maven-build</name> | |
<build> | |
<!-- Source directory configuration --> | |
<sourcedirectory>src</sourcedirectory> | |
<plugins> | |
<!-- Plugin to execute the testng tests --> | |
<plugin> | |
<groupid>org.apache.maven.plugins</groupid> | |
<artifactid>maven-surefire-plugin</artifactid> | |
<version>2.14.1</version> | |
<configuration> | |
<!-- testng xml suite file to be used for test execution --> | |
<suitexmlfiles> | |
<suitexmlfile>testng.xml</suitexmlfile> | |
</suitexmlfiles> | |
<!-- Setting properties for test execution --> | |
<properties> | |
<!-- Setting ReportNG listeners --> | |
<property> | |
<name>listener</name> | |
<value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value> | |
</property> | |
</properties> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactid>maven-compiler-plugin</artifactid> | |
<configuration> | |
<source> 1.7 </source> | |
<target>1.7</target> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<!-- Dependent libraries to be included for compilation --> | |
<dependency> | |
<groupid>com.google.inject</groupid> | |
<artifactid>guice</artifactid> | |
<version>3.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupid>org.uncommons</groupid> | |
<artifactid>reportng</artifactid> | |
<version>1.1.4</version> | |
</dependency> | |
<dependency> | |
<groupid>org.testng</groupid> | |
<artifactid>testng</artifactid> | |
<version>6.3.1</version> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment