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

Scoverage targets invalidate incremental compilation #309

Open
lolgab opened this issue Jul 7, 2020 · 1 comment
Open

Scoverage targets invalidate incremental compilation #309

lolgab opened this issue Jul 7, 2020 · 1 comment

Comments

@lolgab
Copy link

lolgab commented Jul 7, 2020

Compiling with coverage enabled is not compatible with normal compilation without coverage.
This makes all incremental compiler cache to be invalidated when you switch back and forth to coverage.
A possible solution to this problem is to store coverage compilation targets in a separate directory (scapegoat does this, for example).

@lolgab
Copy link
Author

lolgab commented Oct 27, 2023

I found a workaround that works well enough for me.
I added this setting to all the modules in my build:

target := { if (ScoverageKeys.coverageEnabled.value) target.value / "coverage" else target.value }

This way I create a separate target directory when coverage is enabled and I can switch back and forth without having to recompile everything over and over again.

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

No branches or pull requests

2 participants