This project has moved. For the latest updates, please go here.

ReportGenerator not exclude the method that are excluded by NCover

Sep 13, 2012 at 9:49 AM
Edited Sep 13, 2012 at 10:39 AM

Suppose in the report file that was generated by NCover contain the following line,

 

    <method name="XXX" excluded="true" instrumented="false" class="yyy">
      <seqpnt visitcount="0" line="32" column="17" endline="33" endcolumn="32" excluded="true" document="zzz" />
    </method>

 

As you can see the attribute "excluded="true"" , however , ReportGenerator doesn't exclude it on the report. Is there a way to exclude it other than using -filter features?

 

Thank you in advance :D

Coordinator
Sep 13, 2012 at 10:05 AM

For modules, classes and methods OpenCover adds a 'skippedDueTo' attribute if the element is filtered.

I wasn't aware of that "excluded" attribute in seqpnt and method elements.

Two questions:

  1. Are you using the latest version of OpenCover (4.0.804)? 
  2. Can you tell me which command line arguments are used when you run OpenCover?
Sep 13, 2012 at 10:39 AM
Edited Sep 13, 2012 at 10:45 AM

Oh sorry , my really big mistake. :P

It NCover 1.5.8 , not OpenCover. I already edit the topic.

Thanks you for your quick response ><"a