@@ -17,8 +17,8 @@ class CoberturaXmlWriter(baseDir: File, outputDir: File) {
17
17
def method (method : MeasuredMethod ): Node = {
18
18
< method name= {method.name}
19
19
signature= " ()V"
20
- line- rate= {method.statementCoverageFormatted }
21
- branch- rate= {method.branchCoverageFormatted }>
20
+ line- rate= {method.statementCoverage.toString }
21
+ branch- rate= {method.branchCoverage.toString }>
22
22
<lines >
23
23
{method.statements.map(stmt =>
24
24
< line
@@ -38,8 +38,8 @@ class CoberturaXmlWriter(baseDir: File, outputDir: File) {
38
38
case false => baseDir.getAbsolutePath + File .separatorChar
39
39
}
40
40
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 }
43
43
complexity= " 0" >
44
44
<methods >
45
45
{klass.methods.map(method)}
@@ -57,8 +57,8 @@ class CoberturaXmlWriter(baseDir: File, outputDir: File) {
57
57
58
58
def pack (pack : MeasuredPackage ): Node = {
59
59
< 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 }
62
62
complexity= " 0" >
63
63
<classes >
64
64
{pack.classes.map(klass)}
@@ -67,12 +67,12 @@ class CoberturaXmlWriter(baseDir: File, outputDir: File) {
67
67
}
68
68
69
69
def xml (coverage : Coverage ): Node = {
70
- < coverage line- rate= {coverage.statementCoverageFormatted }
70
+ < coverage line- rate= {coverage.statementCoverage.toString }
71
71
lines- covered= {coverage.statementCount.toString}
72
72
lines- valid= {coverage.invokedStatementCount.toString}
73
73
branches- covered= {coverage.branchCount.toString}
74
74
branches- valid= {coverage.invokedBranchesCount.toString}
75
- branch- rate= {coverage.branchCoverageFormatted }
75
+ branch- rate= {coverage.branchCoverage.toString }
76
76
complexity= " 0"
77
77
version= " 1.0"
78
78
timestamp= {System .currentTimeMillis.toString}>
0 commit comments