You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm generating Cobertura-style XML from another tool (a patched version of JCov, actually), and everything seems to work fine, except that the Jenkins plugin doesn't seem to generate painted source code reports at all.
Some cursory source-diving revealed a possible problem in CoberturaCoverageParser, where NumberFormatExceptions are quietly ignored, resulting in the lines not being recorded as painted. I'm pasting a small subset of the XML I'm generating here, on the off chance that it's something wrong with my XML (I can't seem to attach it as a file): <coverage line-rate="0.8223350253807107" branch-rate="0.25"> <sources> <source>/home/eric/src/krypton/src/main/java/</source> </sources> <packages> <packages name="net.metricspace.crypto.ciphers.stream.salsa" line-rate="0.8636363636363636" branch-rate="0.25" complexity="1.0"> <classes> <class name="ChaCha20CipherSpi" filename="net/metricspace/crypto/ciphers/stream/salsa/ChaCha20CipherSpi.java" line-rate="0.7272727272727273" branch-rate="0.0"> <methods> <method name="<init>" signature="()V" line-rate="1.0" branch-rate="0.0"> <lines> <line number="76" hits="81804" branch="false"/> </lines> </method> <method name="engineGetParameters" signature="()Ljava/security/AlgorithmParameters;" line-rate="0.4" branch-rate="0.0"> <lines> <line number="134" hits="0" branch="false"/> <line number="136" hits="0" branch="false"/> <line number="138" hits="0" branch="false"/> <line number="142" hits="163593" branch="false"/> <line number="131" hits="163593" branch="false"/> </lines> </method> <method name="rounds" signature="()V" line-rate="1.0" branch-rate="0.0"> <lines> <line number="150" hits="245397" branch="false"/> </lines> </method> </methods> <lines> </lines> </class> </class> </classes> </packages> </packages> </coverage>
The text was updated successfully, but these errors were encountered:
I'm generating Cobertura-style XML from another tool (a patched version of JCov, actually), and everything seems to work fine, except that the Jenkins plugin doesn't seem to generate painted source code reports at all.
Some cursory source-diving revealed a possible problem in CoberturaCoverageParser, where NumberFormatExceptions are quietly ignored, resulting in the lines not being recorded as painted. I'm pasting a small subset of the XML I'm generating here, on the off chance that it's something wrong with my XML (I can't seem to attach it as a file):
<coverage line-rate="0.8223350253807107" branch-rate="0.25"> <sources> <source>/home/eric/src/krypton/src/main/java/</source> </sources> <packages> <packages name="net.metricspace.crypto.ciphers.stream.salsa" line-rate="0.8636363636363636" branch-rate="0.25" complexity="1.0"> <classes> <class name="ChaCha20CipherSpi" filename="net/metricspace/crypto/ciphers/stream/salsa/ChaCha20CipherSpi.java" line-rate="0.7272727272727273" branch-rate="0.0"> <methods> <method name="<init>" signature="()V" line-rate="1.0" branch-rate="0.0"> <lines> <line number="76" hits="81804" branch="false"/> </lines> </method> <method name="engineGetParameters" signature="()Ljava/security/AlgorithmParameters;" line-rate="0.4" branch-rate="0.0"> <lines> <line number="134" hits="0" branch="false"/> <line number="136" hits="0" branch="false"/> <line number="138" hits="0" branch="false"/> <line number="142" hits="163593" branch="false"/> <line number="131" hits="163593" branch="false"/> </lines> </method> <method name="rounds" signature="()V" line-rate="1.0" branch-rate="0.0"> <lines> <line number="150" hits="245397" branch="false"/> </lines> </method> </methods> <lines> </lines> </class> </class> </classes> </packages> </packages> </coverage>
The text was updated successfully, but these errors were encountered: