Jenkins provides many out-of-the-box functionalities and plugins for testing. The site https://wiki.jenkins.io/display/JENKINS/xUnit+Plugin provides the plugins:
A list of available testing plugins is shown as follows:
- JUnit itself
- AUnit
- MSTest (imported from MSTest Plugin)
- NUnit (imported from NUnit Plugin)
- UnitTest++
- Boost Test Library
- PHPUnit
- Free Pascal Unit
- CppUnit
- MbUnit
- Google test
- EmbUnit
- gtester/glib
- QTestLib
- Pick up the project we have set up:
- Choose build option:
- Choose an
Advanced
option:
- Enter the location of
build.xml
:
- Select the option of post-build option and choose -
Publish JUnit test result report
:
- In the test
reports.xml
, enter the reports created a folder in our project so that Jenkins picks the resulting XML files produced by running of the JUnit test cases:
We can select the build and drill-down to the test results.