Skip to content

Instantly share code, notes, and snippets.

@AshCoolman
Created January 17, 2018 16:52
Show Gist options
  • Save AshCoolman/1d5b5c5b43265ed7631901ac558785c3 to your computer and use it in GitHub Desktop.
Save AshCoolman/1d5b5c5b43265ed7631901ac558785c3 to your computer and use it in GitHub Desktop.
Lerna aggregate package coverage
# 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