More Than Five
More Than Five

Reputation: 10419

Getting test results easier in Jenkins

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

Answers (2)

EpicVoyage
EpicVoyage

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:

  1. Install the JUnit or xUnit plugin.
  2. Add a Post-build Action to Publish JUnit test result report.
  3. Set 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

jwernerny
jwernerny

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

Related Questions