Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source code not getting painted #93

Open
emc2 opened this issue Feb 28, 2018 · 0 comments
Open

Source code not getting painted #93

emc2 opened this issue Feb 28, 2018 · 0 comments

Comments

@emc2
Copy link

emc2 commented Feb 28, 2018

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="&lt;init&gt;" 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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant