How to enable per-test coverage using the Maven plugin?
Closed this issue · 2 comments
Hi all,
I am trying to enable per-test coverage using the Maven plugin. My goal is to generate the binary .ic report and import it into IntelliJ IDEA so that I can see which tests cover specific lines of code. Ideally I can use the IntelliJ IDEA code coverage runner in a CI pipeline.
I have looked through the documentation but couldn't find detailed steps on how to achieve this. Could you provide guidance on how to configure the Maven plugin to enable per-test coverage and generate the necessary .ic report?
Any help or examples would be greatly appreciated.
Thanks in advance!
Hi,
it is impossible to find out from which test some code was executed, because the entire JVM instance is being instrumented and the Agent does not know what calls execution.
You can run a limited set of tests and generate an ic report for it.
I see, thanks for your quick response!