philipgiuliani / coverage

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

Use decoration API to display the coverage for a file #5

Open abe33 opened 10 years ago

abe33 commented 10 years ago

It would be great to have (either through a command or a click on a file in the coverage page) the file coverage displayed using the atom decoration API.

philipgiuliani commented 10 years ago

Hi, i already planned that before v1.0.0 but the current problem is, that the coverage.json file only contains the line numbers and the matches. If you have already modified that file, the "decorations" will not match. Im currently thinking how i could do this.

What do you think about writing an own simeplecov formatter (feature will be only enabled with that formatter) where the wohle file will be in the json with the matches/line?

If you than have changes in the file and click on the "file coverage" you would see the file of the last time you runned the coverage. If you save it, i would have to add a modal if you want to overwrite it or something like that...

Do you have an better idea? Thanks for this enhancement.

povilasjurcys commented 9 years ago

how about using timestamp value from coverage.json? We can compare this value with file modification date. So we still could see coverage for unchanged files

philipgiuliani commented 9 years ago

Thats actually a good idea. Im planning currently to create a universal atom testing package which supports rspec, minitest, cucumber, and every coverage tool which outputs a .lcov file. Haven't started yet with the development, but i will delete this packages when its ready :)

I see you developed some features in the atom-rspec package. Are you maybe interested to do this together? Im planning a support like rubymine has :)