philipgiuliani / coverage

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

lcov support? #9

Open Qard opened 10 years ago

Qard commented 10 years ago

It'd be good to have support for lcov.info files. There's a handy lcov parser on npm that you could use.

philipgiuliani commented 10 years ago

Hi, thanks for your request. Im currently thinking how can i build more parser for the json files, because i am also planning to support https://www.npmjs.org/package/istanbul which is for npm test.

I think after solving https://github.com/philipgiuliani/coverage/issues/3 and finishing the configuration update i will start implementing the "parsers".

Qard commented 10 years ago

+1 for istanbul. That's what I'm using.

LCOV support gets you support for anything that can output it, which is most things.

All JS coverage tools I'm aware of support LCOV including istanbul, jscoverage and blanket. Most coverage history services, like codecov.io or coveralls.io, also use it.

philipgiuliani commented 10 years ago

Oh thanks for the information! Wasn't sure what the lcov.info file actually is. I'll start to work on it this or next week!

I also found out that simplecov has an lvoc formatter... https://github.com/fortissimo1997/simplecov-lcov

So i could switch to lcov only for now theoretical. Would be a nice idea.

philipgiuliani commented 10 years ago

I just tested the simplecov-lcov formatter, and it seems that the data is ok. What do you think about changing the table contents to the following:

File Coverage Relevant lines Covered Missed Hits/Line
Filename.ext (progressbar + %) 80 70 10 5.12
Filename2.ext (progressbar + %) 22 16 6 2.54
Filename3.ext (progressbar + %) 34 4 30 0.23

Thats a little bit how coveralls has it.

Qard commented 10 years ago

I'm down with that.

philipgiuliani commented 10 years ago

Ok, so you would leave it how it is?

Qard commented 10 years ago

I just want the filename and percent/progress bar. Everything else is nice to have, but not important to me.

philipgiuliani commented 10 years ago

Thanks for the feedback!

listepo commented 9 years ago

+1

lslezak commented 8 years ago

JFYI there is a lcov-info Atom package which provides similar functionality, but uses a LCOV input file.

Um, maybe you could somehow consolidate the packages as they provide a similar functionality with just small differences here and there...

From users POV it's better to have a single package which can hande both JSON and LCOV files and also easier for developers to contribute fixes/enhancements....