Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

taskworld/atom-lcov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atom-lcov Build Status

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