-9

Specifically, what is contained inside code coverage data (.nccov or xml file) and how is an html report generated by this? Does the coverage data not include the actual percentage of code covered? Is this only generated when the report is made from the coverage data? Is the coverage data sort of a guideline for the reporting process? Do coverage files need access to assemblies to create a report?

closed as too broad by user53019, gnat, durron597, yannis Jun 8 '15 at 11:07

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Are you interested in how reports are generated from the code coverage data, or how this data is gathered in the first place? The title of your question being different from the body of the question, this may be why you've received the downvote. – Arseni Mourzenko Jul 25 '14 at 16:45
  • I'm interested in how a report is generated from the code coverage data, and what kind of data is stored inside the coverage xml. – dddd Jul 25 '14 at 16:51
  • 1
    Doesn't this depend entirely on the software that generated the file(s)? If so, this is unanswerable. – Jan Doggen Aug 6 '14 at 6:34
0

Specifically, what is contained inside code coverage data?

Code coverage data is used to determine how effectively your tests exercise the code in your application. This data helps you to identify sections of code not covered and sections of code partially covered by your tests, as well as sections of code where you have complete coverage. With this information, you can add to or change your test suites to maximize their effectiveness.

Does the coverage data not include the actual percentage of code covered ?

Yes, it does show the percentage of the code that was run in each assembly, class, and method.

Do coverage files need access to assemblies to create a report?

Yes.

Also, check the MSDN for any other related queries.

  • Thanks for the answer. Just have one more question, because I don't feel like I asked it very well. Does the nccov/xml need to access the assemblies again to be converted to a html/xml? If so, why? If the coverage percentages are inside the coverage data file (.nccov), what else does it need from the assemblies to create a report? I'll mark your answer as the correct one, just wanted to see if you had anymore to say on this. – dddd Jul 25 '14 at 19:08
  • From what I understand once the analysis is done, they do not need to access assemblies again. – Zeus Jul 25 '14 at 19:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.