Menu

#9 No lines information for non covered methods

open
nobody
None
6
2010-07-08
2010-07-08
Anonymous
No

I'm trying to integrate partcover in Sonar tool in order to visualize the coverage results in Sonar.

The problem that I have with PartCover 4 is that I don't know from the report which lines were not covered if the method was not called.
So the methods that are no covered doesn't contain line information.

This really make hard to visualize those uncovered methods with red color in Sonar.

Discussion

  • Anonymous

    Anonymous - 2010-07-08

    Will it be possible to have the following:
    <Method name="AppInfo" sig="void (string)" bodysize="15" flags="0" iflags="0" />
    <pt visit="0" pos="0" len="14" fid="1" sl="11" el="15"/>

    Instead of just
    <Method name="AppInfo" sig="void (string)" bodysize="15" flags="0" iflags="0" />

    ?

     
  • Shaun Wilde

    Shaun Wilde - 2010-07-08
    • labels: 1163306 -->
    • milestone: 1160515 -->
    • priority: 5 --> 6
     
  • Shaun Wilde

    Shaun Wilde - 2010-07-08

    This isn't actually a bug but 'by design' - okay I know this phrase can be rolled out as an easy cop out but it seems PartCover used to report the way you requested and was altered to not do so in a later release (though I can't find any tracker information as to why, though I suspect it may be to do with memory management - it did introduce an issue with the xslt file reporting which was recently fixed)

    I have therefore changed this into a Feature Request.

    I am not familiar with sonar - are you refering to http://www.sonarsource.org/ ? However could you not infer that anything not covered must therefore be uncovered, or is it the line number information you are after to do some sort of specific highlighting?

     

Log in to post a comment.

MongoDB Logo MongoDB