Skip to content
Snippets Groups Projects
Commit ef40dc67 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Update CoverageConverterAction.kt

parent 66dde636
No related branches found
No related tags found
No related merge requests found
......@@ -37,12 +37,12 @@ internal class CoverageConverterAction(
override fun execute(task: Task) {
fun printTotal(data: ReportDto) {
val instructionRate = convertCounter(data.counters, CounterTypeDto.INSTRUCTION).rate
val instructionRate = convertCounter(data.counters, CounterTypeDto.INSTRUCTION).rate * 100
val instructionMissed = convertCounter(data.counters, CounterTypeDto.INSTRUCTION).missed
val branchRate = convertCounter(data.counters, CounterTypeDto.BRANCH).rate
val branchRate = convertCounter(data.counters, CounterTypeDto.BRANCH).rate * 100
val branchMissed = convertCounter(data.counters, CounterTypeDto.BRANCH).missed
println("[JacocoPrinter] Instructions $instructionRate (Missed $instructionMissed)")
println("[JacocoPrinter] Branches $branchRate (Missed $branchMissed)")
println("[JacocoPrinter] Instructions $instructionRate% (Missed $instructionMissed)")
println("[JacocoPrinter] Branches $branchRate% (Missed $branchMissed)")
}
fun convertFile(input: File, output: File) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment