philipgiuliani / coverage

Shows the current test coverage of your project in Atom
MIT License
14 stars 3 forks source link

Confused by the output #12

Closed zackshapiro closed 9 years ago

zackshapiro commented 9 years ago

So I'm looking at this but I'm confused by the output.

It's showing me ~29% of sell.rake is covered but 100% of the spec file that covers tests that file

I'm not testing the spec file so I'm confused as to why it's showing me 100% of the spec file is covered yet only 29% of the file it's testing is covered

Am I reading this incorrectly?


I'm also seeing 100% coverage for my order_spec.rb file but no showing of order.rb or its coverage in the print out

philipgiuliani commented 9 years ago

Hi, i really have no idea how this happened. First of all: The output you see comes from the Simplecov Gem. Im just parsing the results of the coverage and showing them in a nicer way.


I have no idea why simplecov is checking your spec files since it makes 0 sense to test your tests. How have you configured simplecov?

Open "Project Directory/coverage/index.html" with your Browser, then you will see which lines of sell.rake are not covered.

zackshapiro commented 9 years ago

After some investigation, simplecov seems to be doing some weird stuff

https://github.com/colszowka/simplecov/issues/349

philipgiuliani commented 9 years ago

Okey thanks for your response. I hope that they fix this weird bug. I will close this, feel free to reopen it.