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

Add package like task #199

Open
igreenfield opened this issue Jul 16, 2023 · 1 comment
Open

Add package like task #199

igreenfield opened this issue Jul 16, 2023 · 1 comment

Comments

@igreenfield
Copy link

In the Maven plugin you can create jar with all instrumented classes so you can test on other systems also you can get cross-module coverage.
Can you add such an ability?

@maiflai
Copy link
Contributor

maiflai commented Aug 16, 2023

Sadly it's not as straightforward as you might hope - I think Gradle keeps a close eye on task inputs and outputs.

It used to be possible to create a Jar from scoverageClasses and add this to the scoverage dependencies in the dependent project.

This then ensures the instrumented classes are placed first in the classpath.

However I think Gradle 8 doesn't like this.

I'm also not sure how portable the instrumented classes are; they used to have the output path embedded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants