atom-lcov

See your code’s coverage in the gutter, with live reloading.

taskworld

1,431

7

2.0.0

MIT

GitHub

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.

Screenshot

Tested with:

Usage

1. Write your code and your tests

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.

Set up your test tool to output lcov data

3. Run your test once

Make sure the coverage data file is generated. It’s usually named lcov.info.

Run your test

4. Right click on your lcov file and select “watch for coverage”

Watch for coverage

5. Atom will begin watching the lcov file and show it in the gutter

Gutter

6. Run your tests in watch mode

Here I use onchange to monitor the .js files and re-run the tests.

Watch mode

7. Add more tests and see the gutter turn green!!!!

It turns green