I'am trying to make use of the "Publish JUnit test result report" in Jenkins, but can't get it to work for my android test project. The setup of my android test project in Jenkins is based on this guide: https://wiki.jenkins-ci.org/display/JENKINS/Building+an+Android+app+and+test+project
I hope someone could post an easy step by step guide on how to get the JUnit test result reports out of the test run to being able to use "Publish JUnit test result report". Would like to use this feature because the standard console output of the Junit tests in Jenkins are not quite convenient.
I found some guides (not so many) on the Internet, but non of them worked for me. This is what I tried so far (with no success):
(Some links are not displayed correctly because cant post more then two links with my reputition.)
Help is very appreciated :)
I just had to solve this problem for myself, this is how I got it working:
1.) Install the performance Plugin 2.) In the project settings, add a new Post build action "Publish JUnit-testresults" 3.) As path, add /app/build/androidTest-results/connected/*.xml (Path may be slightly different on your machine)
4.) Now, after the project ran the first time, you have a new Link "Last testresult" and on the right side a graphical representation.
Regards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With