Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable per-test coverage using the Maven plugin? #719

Closed
dat-leth opened this issue Dec 18, 2024 · 2 comments
Closed

How to enable per-test coverage using the Maven plugin? #719

dat-leth opened this issue Dec 18, 2024 · 2 comments
Assignees
Labels
Question Support request issue type S: untriaged Status: issue reported but unprocessed

Comments

@dat-leth
Copy link

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!

@dat-leth dat-leth added Question Support request issue type S: untriaged Status: issue reported but unprocessed labels Dec 18, 2024
@shanshin
Copy link
Collaborator

shanshin commented Dec 18, 2024

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.

@dat-leth
Copy link
Author

I see, thanks for your quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Support request issue type S: untriaged Status: issue reported but unprocessed
Projects
None yet
Development

No branches or pull requests

2 participants