1

We have a Jenkins setup which utilizes multiple projects for running various suites of tests for our application.

There is one 'parent' project, which is triggered by Git commits. This project in turn builds our 'child' project. Each child projects runs a series of defined tests.

Each project is setup with JUnit to output onto the build page the results of the tests.

In order to get a comprehensive view of commits across our entire project, you need to go to the build page of EACH of our 'child' projects to see the results.

What I would like to do is aggregate ALL the JUnit reports, from builds triggered by out 'parent' project across all the 'child' projects to one place so we can view all the test results together.

Does anyone have experience with something like this?

3

The JUNIT plugin has a built-in publisher for aggregating test results called "Aggregate Downstream Test Results". You need to make sure that the 'parent' and 'child' jobs are linked together with a downstream/upstream relation. This is usually done by archiving an artifact in the parent build and copying it to the children builds using the 'Archive Artifact' publisher and the 'Copy Artifact' buildstep respectively.

  • Fair point. Edited for (some) clarity. – Myrrhman Sep 12 '18 at 16:18
  • much better ... – Pierre.Vriens Sep 12 '18 at 16:54
-1

If you are able to use gradle, maybe use something like mentioned here:

Multi-module projects or this

Also you'll get coverage :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.