Skip to content

Commit

Permalink
fix: update nyc reporter to lcov (#34)
Browse files Browse the repository at this point in the history
* fix: update nyc reporter to lcov

* docs: add LCOV report to README
  • Loading branch information
fsmaia authored and bahmutov committed Jul 11, 2019
1 parent 83de1c7 commit 79d09a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = (on, config) => {
}
```

If your application is loaded Istanbul-instrumented source code, then the coverage information will be automatically saved into `.nyc_output` folder and a report will be generated after the tests finish (even in the interactive mode). Find the HTML report in the `coverage` folder.
If your application is loaded Istanbul-instrumented source code, then the coverage information will be automatically saved into `.nyc_output` folder and a report will be generated after the tests finish (even in the interactive mode). Find the LCOV and HTML report in the `coverage/lcov-report` folder.

![Coverage report](images/coverage.jpg)

Expand Down
2 changes: 1 addition & 1 deletion task.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = {
return null
}
const command = 'nyc'
const args = ['report', '--reporter=html']
const args = ['report', '--reporter=lcov']
debug('saving coverage report using command: %s %s', command, args)
// should we generate report via NYC module API?
return execa(command, args, { stdio: 'inherit' })
Expand Down

0 comments on commit 79d09a5

Please sign in to comment.