Quantcast
Channel: opencppcoverage Discussions Rss Feed
Viewing all articles
Browse latest Browse all 235

New Post: How to get the total number of lines from the cobertura xml report?

$
0
0
Hello,

Cobertura is a XML format for Cobertura Jenkins plugin and so this information cannot be added directly to the XML.

You can compute it easily by counting the tag line.
  • If hits attribute is "1" (for example <line number="5" hits="1"/>) then the line is covered.
  • If hits attribute is "0" (for example <line number="5" hits="0"/>) then the line is not covered.
I hope this will help,

OpenCppCoverage

Viewing all articles
Browse latest Browse all 235

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>