Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Incorrect NCover Code Coverage results

I discovered, that "Line Rate", "Lines of Code", "Lines Executed", "Lines Not Executed" in NCover Code Coverage results don't present right values, their values actually correspond to sequence points coverage, not line coverage. I think, I found the problem code, class: NCoverReportParser, method: parse 

linesOfCode = getLongValueFromNode(document, "count(//seqpnt)");        

linesExecuted = getLongValueFromNode(document, "count(//seqpnt[not(@vc=0 or @visitcount=0)])");        

lineRate = linesExecuted.doubleValue() / linesOfCode.doubleValue();

"Lines of code" is just a number of sequence points from this code, but this is wrong. Is there any hope that it can be fixed? Thanks in advance.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

58 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you