Reputation: 10419
When I run grails tests via jenkins I can check the console to see everything passed. I'll see something like this:
Tests PASSED - view reports in /Users/me/developer/gradlemucks/grails_2/hello-world/target/test-reports
Is there anyway I could put in a hyperlink somewhere in Jenkins to the test reports so that I could just click thru to the report? Thanks
Upvotes: 0
Views: 235
Reputation: 754
According to the testing guide, Grails outputs both .html
and .xml
formatted results from the tests by default. You can configure Jenkins to read the .xml
files:
Post-build Action
to Publish JUnit test result report
.Test report XMLs
path to build/test-results/*.xml
(or whatever path your JUnit .xml output files are dumped to).This will permit you to click through the tests run for any build from the left sidebar within Jenkins.
Upvotes: 1
Reputation: 7048
Have you looked at the Side Bar Link Plugin? It allows you to add arbitrary links to the left side menu of a job.
Upvotes: 0