Created
January 17, 2018 16:52
-
-
Save AshCoolman/1d5b5c5b43265ed7631901ac558785c3 to your computer and use it in GitHub Desktop.
Lerna aggregate package coverage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aggregate lcov coverage data from all packages | |
lerna exec -- "yarn test --coverage" | |
yarn test --coverage | |
# yarn add lcov-result-merger -D | |
./node_modules/.bin/lcov-result-merger lcov.info ./all-coverage | |
./node_modules/.bin/lcov-result-merger '**/lcov.info' ./all-coverage | |
# brew install lcov | |
genhtml all-coverage | |
open coverage/lcov-report/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment