Skip to content

Commit a739720

Browse files
committed
CoverageAggregator refuses to aggregate single file
If only one scoverage.xml file is found, the aggregator refuses to produce output: [info] Found 1 subproject report files [/Users/arkadiy/mine/L-SPACE/l_space/target/scala-2.11/scoverage-report/scoverage.xml] [info] No subproject data to aggregate, skipping reports This allows aggregation of a single file Fixes #144
1 parent f8c229c commit a739720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalac-scoverage-plugin/src/main/scala/scoverage/report/CoverageAggregator.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object CoverageAggregator {
1313

1414
def aggregate(files: Seq[File], clean: Boolean): Option[Coverage] = {
1515
println(s"[info] Found ${files.size} subproject report files [${files.mkString(",")}]")
16-
if (files.size > 1) {
16+
if (files.size > 0) {
1717
val coverage = aggregatedCoverage(files)
1818
if (clean) files foreach (_.delete)
1919
Some(coverage)

0 commit comments

Comments
 (0)