Skip to content

Commit

Permalink
Add an assertion for the test strength.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jan 17, 2024
1 parent 83a53b3 commit 4a910b9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,13 @@ private void verifyOnePitResult(final ParameterizedJob<?, ?> project) {
assertThat(m.getCovered()).isEqualTo(222);
assertThat(m.getTotal()).isEqualTo(246);
});
assertThat(coverageResult.getAllValues(Baseline.PROJECT))
.filteredOn(Value::getMetric, Metric.TEST_STRENGTH)
.first()
.isInstanceOfSatisfying(Coverage.class, m -> {
assertThat(m.getCovered()).isEqualTo(222);
assertThat(m.getTotal()).isEqualTo(230);
});
}

private static CoverageBuilder createLineCoverageBuilder() {
Expand Down

0 comments on commit 4a910b9

Please sign in to comment.