Ticket #3877 (closed defect: fixed)
The output xml didn't confirm to Cobertura DTD
|Reported by:||yllan@…||Owned by:||jdsiiro|
According to the DTD ( http://cobertura.sourceforge.net/xml/coverage-03.dtd) which gcovr included, the root element (coverage node) should have attribute "line-rate", "branch-rate", "version" and "timestamp." But the xml output of gcovr didn't have these attributes.
Because the lack of these attributes, Bamboo cobertura plug-in didn't work well with gcovr output.
I have a simple workaround by adding "line-rate" and "branch-rate" to the root node. (No version and timestamp though, but it works with Bamboo Cobertura plug-in.) You could check my code here: