File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ public extension Xccov.Converters.CoberturaXml {
62
62
var currentPackageElement : XMLElement !
63
63
var isNewPackage = false
64
64
65
+ var currentClassesElement = XMLElement ( )
66
+
67
+
65
68
allFiles. forEach { fileCoverageReport in
66
69
// Define file path relative to source!
67
70
let filePath = fileCoverageReport. path. replacingOccurrences ( of: currentDirectoryPath + " / " , with: " " )
@@ -72,11 +75,10 @@ public extension Xccov.Converters.CoberturaXml {
72
75
73
76
if isNewPackage {
74
77
currentPackageElement = XMLElement ( name: " package " )
78
+ currentClassesElement = XMLElement ( )
75
79
packagesElement. addChild ( currentPackageElement)
76
80
}
77
81
78
- var currentClassesElement = XMLElement ( )
79
-
80
82
currentPackage = packageName
81
83
if isNewPackage {
82
84
currentPackageElement. addAttribute ( XMLNode . nodeAttribute ( withName: " name " , stringValue: packageName) )
@@ -95,7 +97,6 @@ public extension Xccov.Converters.CoberturaXml {
95
97
classElement. addAttribute ( XMLNode . nodeAttribute ( withName: " branch-rate " , stringValue: " 1.0 " ) )
96
98
classElement. addAttribute ( XMLNode . nodeAttribute ( withName: " complexity " , stringValue: " 0.0 " ) )
97
99
currentClassesElement. addChild ( classElement)
98
- // currentPackageElement.addChild(classElement)
99
100
100
101
let linesElement = XMLElement ( name: " lines " )
101
102
classElement. addChild ( linesElement)
You can’t perform that action at this time.
0 commit comments