-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Description
Hi,
In a multi-module build we can have a situation where one module's tests exercise code paths of another module it depends on. If we're not careful, this could shadow uncovered code in the depended module, depending on the relative order of their tests in CI.
Let's say,
adepends onb;- we test
athenb; - testing
aexercises a code path inbwhichbdoes not exercise by itself; - coverage report for
bwill indicate that code path as covered.
If we're strict about the modules' interfaces, we'd want their coverage to be guaranteed by their own tests, not their dependents'.
Running rm b/target/scala-2.13/scoverage-data/scoverage.measurements* between test invocations seems to do the job, but I wondered if an Sbt Task wouldn't be more appropriate or even if there was a way to avoid writing those measurements to dependencies' $coverageDataDir in the first place.
Thank you
Metadata
Metadata
Assignees
Labels
No labels