atom-lcov
This Atom package shows your code’s test coverage in the gutter. It guides you towards more code coverage! Inspired by Wallaby.js.
Tested with:
Usage
1. Write your code and your tests
2. Set up your test tool to output lcov data
In this example, I use nyc to capture the code coverage while running Mocha test.
3. Run your test once
Make sure the coverage data file is generated. It’s usually named lcov.info
.
4. Right click on your lcov file and select “watch for coverage”
5. Atom will begin watching the lcov file and show it in the gutter
6. Run your tests in watch mode
Here I use onchange to monitor the .js
files and re-run the tests.