How can I tell TeamCity where to find the Surefire and Failsafe reports for JUnit?
We recently converted a dual build, dual repo setup to a single mono repo to simplify versioning of our application. Now we just trigger a single script from TeamCity that basically does this
pushd frontend && npm install && npm test
popd
pushd backend && mvn verify
That's it. TeamCity finds 440 tests, but these are all frontend tests (Mocha framework with teamcity reporter). It does not find the backend tests, which are now to be found in `backend/target/surefire-reports` and `backend/target/failsafe-reports`.
How can I manually tell TeamCity to pick up these test results? I already tried adding these strings to the "Artifact paths:" textfield in the configuration of the build.
Please sign in to leave a comment.
A co-worker directed me to the documentation for XML Report Processing. This build feature was easy to add and I just added the two lines mentioned to the rules section, saved and re-ran the build. That resulted in going from 440 tests to 900 :-D