Skip to content

Commit

Permalink
Merge pull request #2 from dragisak/master
Browse files Browse the repository at this point in the history
Add line coverage % column
  • Loading branch information
Joachim Hofer committed Nov 8, 2013
2 parents f01c66a + 1e763be commit 5bc9244
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/de/johoop/jacoco4sbt/ScalaHtmlFormatter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ScalaHtmlFormatter(withBranchCoverage: Boolean) extends HTMLFormatter {
t.add("Element", null, new LabelColumn, false)
t.add("Missed Lines", Styles.BAR, new BarColumn(ICoverageNode.CounterEntity.LINE, getLocale), true)
t.add("Total Lines", Styles.CTR1, CounterColumn.newTotal(ICoverageNode.CounterEntity.LINE, getLocale), false)
t.add("Cov.", Styles.CTR2, new PercentageColumn(ICoverageNode.CounterEntity.LINE, getLocale), false)
if (withBranchCoverage) {
t.add("Missed Branches", Styles.BAR, new BarColumn(ICoverageNode.CounterEntity.BRANCH, getLocale), false)
t.add("Cov.", Styles.CTR2, new PercentageColumn(ICoverageNode.CounterEntity.BRANCH, getLocale), false)
Expand All @@ -55,4 +56,4 @@ class ScalaHtmlFormatter(withBranchCoverage: Boolean) extends HTMLFormatter {
table.add("Missed", Styles.CTR1, CounterColumn.newMissed(entity, getLocale), false)
table.add(label, Styles.CTR2, CounterColumn.newTotal(entity, getLocale), false)
}
}
}

0 comments on commit 5bc9244

Please sign in to comment.