Software AG Products 10.7 | Unit Test Framework | Executing Tests | Continuous Integration | View JUnit Test Results and Code Coverage Reports
 
View JUnit Test Results and Code Coverage Reports
When you execute the Ant script (run-composite-runner.xml) from the Test Suite Executor project, the build process generates the JUnit reports and code coverage reports. You can find these reports in the folder defined by the webMethods.test.profile.result.location property in the run-test-suites.properties file.
View JUnit reports
The Ant script invokes the headless test execution build which generates JUnit reports in XML and HTML formats.
When the JUnit report is...
Then...
XML
The Ant script invokes the headless test execution build which generates the XML report in the location as defined by the webMethods.test.profile.result.location property in the run-test-suites.properties file.
Use the JUnit test report extension of your continuous integration tool to view the test report. For example, the Jenkins JUnit plugin. This plugin provides a graphical representation of the historical test results and a web interface to view test reports and track failures.
HTML
The Ant script invokes the headless test execution build which creates the html folder containing a HTML report. The build process creates the html folder in the location as defined by the webMethods.test.profile.result.location property in the runtest-suites.properties file.
Use a plugin supported by your continuous integration tool to publish the test report. For example, the Jenkins HTML Publisher.
View code coverage report
The Ant script invokes the headless test execution build which generates the code coverage report when the webMethods.test.setup.profile.mode property is set to Coverage in the run-testsuites.properties file.
The build process generates the wmcodecoverage folder in the same location as defined by the webMethods.test.profile.result.location property in the run-test-suites.properties file and saves the code coverage report inside the wmcodecoverage folder.
To publish the code coverage report, you can use a plugin supported by your continuous integration tool. For example, the Jenkins HTML Publisher. You can use any supported application server to view the code coverage reports in your web browser. For example, NodeJs or Tomcat. To view the report, you must copy the wmcodecoverage folder to the application server.