Showing posts with label Maven. Show all posts
Showing posts with label Maven. Show all posts
Wednesday, October 2, 2013
Earlier I had covered in my blog about generating TestNg-xslt report for your TestNG test execution using Maven. Following is the link to it:
Run the following command to run your test cases and generate the ReportNG report.
Or just
Once run by default the execution report can be found under the folder named "html" under the surefire report directory inside "target" folder of your project folder.
In this blog I will write about how to generate a ReportNG report for your TestNG test execution using maven. Following is a pom.xml file that can be used to execute your tests in a maven project and also generate a ReportNG report after execution.
Run the following command to run your test cases and generate the ReportNG report.
mvn clean test
Or just
mvn test
Once run by default the execution report can be found under the folder named "html" under the surefire report directory inside "target" folder of your project folder.
Saturday, May 12, 2012
Earlier I had covered in my blog on how to generate a TestNG-xslt report for your TestNG test-case execution using Ant. Following is the link to it:
http://blog.varunin.com/2010/05/generating-selenium-reports-using.html
As many of the recent projects are now using maven as their build tool ,test-cases are also required to integrate itself to the existing build. In this blog I will mention about how to generate a TestNG-xslt report for your TestNG test-case execution using Maven.
Following is the "pom.xml" file for executing TestNG test-cases and to generate a "TestNG-xslt" report for the same:
Run the following command in terminal/command prompt to run your test cases and generate the TestNG-xslt report. The report will be generated under folder named "testng-xslt-report" inside the "target" folder under your build directory. http://blog.varunin.com/2010/05/generating-selenium-reports-using.html
As many of the recent projects are now using maven as their build tool ,test-cases are also required to integrate itself to the existing build. In this blog I will mention about how to generate a TestNG-xslt report for your TestNG test-case execution using Maven.
Following is the "pom.xml" file for executing TestNG test-cases and to generate a "TestNG-xslt" report for the same:
mvn clean test site org.reportyng:reporty-ng:1.2:reportyng
Note: In case the "test" task of mvn fails the report task of xslt will not be executed. You can apply any of the strategies mentioned in the following url to achieve the same as part of a single execution:
http://stackoverflow.com/questions/4174696/making-maven-run-all-tests-even-when-some-fail
Else 2 different commands have be run for test execution and report generation separately.
To know more about the TestNG-xslt configuration parameters please refer to my earlier blog post:
http://blog.varunin.com/2010/05/generating-selenium-reports-using.html
Subscribe to:
Posts
(
Atom
)