@@ -17,8 +17,8 @@ class CoberturaXmlWriter(baseDir: File, outputDir: File) {
1717 def method (method : MeasuredMethod ): Node = {
1818 < method name= {method.name}
1919 signature= " ()V"
20- line- rate= {method.statementCoverageFormatted }
21- branch- rate= {method.branchCoverageFormatted }>
20+ line- rate= {method.statementCoverage.toString }
21+ branch- rate= {method.branchCoverage.toString }>
2222 <lines >
2323 {method.statements.map(stmt =>
2424 < line
@@ -38,8 +38,8 @@ class CoberturaXmlWriter(baseDir: File, outputDir: File) {
3838 case false => baseDir.getAbsolutePath + File .separatorChar
3939 }
4040 klass.source.replace(absPath, " " )}
41- line- rate= {klass.statementCoverageFormatted }
42- branch- rate= {klass.branchCoverageFormatted }
41+ line- rate= {klass.statementCoverage.toString }
42+ branch- rate= {klass.branchCoverage.toString }
4343 complexity= " 0" >
4444 <methods >
4545 {klass.methods.map(method)}
@@ -57,8 +57,8 @@ class CoberturaXmlWriter(baseDir: File, outputDir: File) {
5757
5858 def pack (pack : MeasuredPackage ): Node = {
5959 < package name= {pack .name }
60- line- rate= {pack.statementCoverageFormatted }
61- branch- rate= {pack.branchCoverageFormatted }
60+ line- rate= {pack.statementCoverage.toString }
61+ branch- rate= {pack.branchCoverage.toString }
6262 complexity= " 0" >
6363 <classes >
6464 {pack.classes.map(klass)}
@@ -67,12 +67,12 @@ class CoberturaXmlWriter(baseDir: File, outputDir: File) {
6767 }
6868
6969 def xml (coverage : Coverage ): Node = {
70- < coverage line- rate= {coverage.statementCoverageFormatted }
70+ < coverage line- rate= {coverage.statementCoverage.toString }
7171 lines- covered= {coverage.statementCount.toString}
7272 lines- valid= {coverage.invokedStatementCount.toString}
7373 branches- covered= {coverage.branchCount.toString}
7474 branches- valid= {coverage.invokedBranchesCount.toString}
75- branch- rate= {coverage.branchCoverageFormatted }
75+ branch- rate= {coverage.branchCoverage.toString }
7676 complexity= " 0"
7777 version= " 1.0"
7878 timestamp= {System .currentTimeMillis.toString}>
0 commit comments