Jacoco should have a report goal that runs at the end of the maven build

22 views
Skip to first unread message

Peter Nelissen

unread,
Oct 16, 2020, 12:44:52 PM10/16/20
to JaCoCo and EclEmma Users
Jacoco should only create XML reports once all tests of all modules ran. The last module might create coverage in previous modules.

The old binary format supported this very easy, by writing to the same single binary file using append=true. And sonar plugin would use this file. Now sonar made it fully deprecated and we need to use the XML file as of version 8. (LTS is still on 7.9 of sonar and works for a couple of months)

Jacoco proposes to use an aggregate maven module to fix code coverage for multi module projects. This is too intrusive. Why would I want a seperate maven module to fix code coverage...

A comment of @bmaehr on following issue gives the solution of such a goal: https://github.com/jacoco/jacoco/issues/974

Do you see other solutions?

Do you think this is a good idea?

Reply all
Reply to author
Forward
0 new messages