-
Notifications
You must be signed in to change notification settings - Fork 0
Coverage
Thomas Schaffter edited this page Sep 24, 2019
·
4 revisions
Generate a coverage report (currently supports only server coverage):
npm run cover
Dry run using codecov
:
$ codecov
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
v3.6.1
==> Detecting CI Provider
No CI Detected. Using git/mercurial
==> Configuration:
Endpoint: https://codecov.io
{ commit: '237a8f0fdb1753007163a89c1279d4481d1c19dd',
branch: 'develop',
package: 'node-v3.6.1' }
==> Building file structure
==> Generating gcov reports (skip via --disable=gcov)
$ find /Users/tschaffter/dev/PHCCollaborationPortal -type f -name '*.gcno' -exec gcov {} +
==> Scanning for reports
+ /Users/tschaffter/dev/PHCCollaborationPortal/coverage/lcov.info
==> Uploading reports
HTTP 400
Please provide the repository token to upload reports via `-t :repository-token`
Upload the coverage report to Codecov:
codecov --token=${CODECOV_TOKEN}
where CODECOV_TOKEN
is a token provided by Codecov.