Skip to content

Commit

Permalink
test: add in test for gradle aggregate (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckipp01 authored Jul 28, 2022
1 parent efaf064 commit 3f95dfc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,19 @@ class CoverageAggregatorTest extends FunSuite {
measurementsFile3Writer.write("2\n")
measurementsFile3Writer.close()

val aggregatedForGradle = CoverageAggregator.aggregate(
Array(dir1, dir2, dir3),
new File(sourceRoot)
)

assert(aggregatedForGradle.nonEmpty)

val aggregated =
CoverageAggregator.aggregatedCoverage(
Seq(dir1, dir2, dir3),
new File(sourceRoot)
)

assertEquals(aggregated.statements.toSet.size, 4)
assertEquals(
aggregated.statements.map(_.copy(id = 0)).toSet,
Expand Down

0 comments on commit 3f95dfc

Please sign in to comment.