Welcome Guest! To enable all features please Login or Register.



Branch Coverage
#1 Posted : Friday, December 4, 2020 10:34:01 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/4/2020(UTC)
Posts: 1
Location: United States of America

Are there any plans to support branch coverage metrics in the future? With the ability to export coverage data in OpenCover format from NCrunch, and import into NDepend, it would be a nice feature to have.

From the NDepend website:

PercentageBranchCoverage: (defined for methods) Branch coverage is a more accurate measure of coverage than PercentageCoverage because it compensates for method complexity. Since branch coverage is generated from the underlying opcodes, it often does not map cleanly to source code. That means it’s difficult to take branch coverage values and determine how to write tests that will improve coverage.

Branch coverage is only available if your coverage data are imported from NCover or OpenCover coverage files and if the metric NbLinesOfCode is available.

Recommendations: The bottom line is:

Use PercentageCoverage as your measure of quality, but
Use PercentageBranchCoverage to determine which code statements need more testing.
It is also interesting to observe branch coverage values in conjunction with Code Source Cyclomatic Complexity values.
#2 Posted : Friday, December 4, 2020 10:41:07 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,510

Thanks: 852 times
Was thanked: 1155 time(s) in 1079 post(s)

We have no plans for this at the moment. You are welcome to vote for it on uservoice if you like.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download