Giter VIP home page Giter VIP logo

Comments (5)

danielpalme avatar danielpalme commented on May 18, 2024

Please see this thread for an explanation:
http://reportgenerator.codeplex.com/discussions/549025

from reportgenerator.

decentshakti avatar decentshakti commented on May 18, 2024

Thanks for the reply!
But as shown in the snapshot, VS also shows Line coverage?

On 7/22/16, Daniel Palme [email protected] wrote:

Closed #54.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#54 (comment)

from reportgenerator.

danielpalme avatar danielpalme commented on May 18, 2024

Yes the numbers are a bit different. I don't know exactly how VS counts lines here.
ReportGenerator counts files twice if two classes are defined in a single file. That may explain the difference.

Without a concrete example I can't tell. If you find a concrete class or line where ReportGenerator shows an invalid coverage, please create an issue with corresponding screenshots or reports attached.

from reportgenerator.

krlydm avatar krlydm commented on May 18, 2024
Please see this thread for an explanation:
http://reportgenerator.codeplex.com/discussions/549025

@danielpalme: Unfortunately, link is not longer available. Can you share the explantation here?

from reportgenerator.

danielpalme avatar danielpalme commented on May 18, 2024

@adam990i
VS uses blocks, see some explanation here: http://stackoverflow.com/questions/4958209/the-blocks-in-code-coverage-with-vs2010
ReportGenerator maps this to the lines of the source code and therefore shows "line coverage".

Since blocks and lines are not the same, the results may differ (23,70% <-> 25.29% coverage).

ReportGenerator parses all source files to generate the reports. If one file does not exist (any more), the corresponding warning is generated.
If you want an accurate report, all files should be available.

from reportgenerator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.