0

I have a Java application set up on IntelliJ IDEA. I have several tests for which I need to generate coverage reports individually for each of the tests.

IntelliJ IDEA coverage runner runs all the tests at once and generates a single report showing the overall coverage. How can I use IntelliJ IDEA coverage runner or Jacoco plugin in gradle script to generate separate reports the tests?

Dipankar Ghosh
  • 105
  • 1
  • 9
  • you can use jacoco plugin in gradle – Viet Oct 03 '17 at 02:58
  • I have tried using jacoco plugin in gradle, but its giving me a single report with the overall coverage after running all the tests. What I want is separate reports for the tests. – Dipankar Ghosh Oct 03 '17 at 03:34
  • you can click on the row on the overall report to see detail. Each detail report is just html file which you can see under jacoco folder – Viet Oct 03 '17 at 03:43

1 Answers1

0

Run tests separately one by one (see How to run only one test class on gradle), for each run use separate directory to save report.

Godin
  • 9,801
  • 2
  • 39
  • 76