Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 668 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 668 Bytes

learning-code-coverage

Companion code repo for a blog post series:

Setup

$ yarn global add typescript@2
$ git clone git@github.com:amarnus/learning-code-coverage.git
$ cd learning-code-coverage/
$ yarn

Usage

# compile
$ tsc

# stats
$ node bin/stats.js

# instrument
$ node bin/instrument.js > source.instrumented.js

# test
$ npm test

# visualize
$ npm run genhtml

# visualize on linux
$ genhtml -o html/ ./lcov.info