Skip to content

RichardBradley/sbt-scoverage-multiproject-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-scoverage-multiproject-sample

See scoverage/sbt-scoverage#87

If I run

sbt clean coverage test
sbt coverage test
sbt coverageAggregate

then I don't get any report for the "util" project: "No subproject data to aggregate, skipping reports"

I've found a workaround for my case:

sbt clean
sbt "set coverageEnabled := true" "set coverageEnabled in util := true" test coverageReport
sbt coverageAggregate

This will produce the correct report.

I found that running

sbt clean coverage compile

would instrument the main project but not the "util" project, but running

sbt clean coverage "set coverageEnabled in util := true" compile

would instrument the "util" project but not the main project.

Something is definitely up with the "coverage" command in multi-project builds.

About

sbt-scoverage-multiproject-sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages