FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: add windows and c++ coverage by bcoe · Pull Request #35670 · nodejs/node · GitHub

Repository navigation

Prev Previous commit
Next Next commit
chore: attempt to build with gcov
  • Loading branch information
bcoe committed Oct 18, 2020
commit 656160fd853d07c743d80599418cdc06fb204ae6
10 changes: 7 additions & 3 deletions .github/workflows/coverage-linux.yml
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ env:
FLAKY_TESTS: dontcare

jobs:
# TODO(bcoe): add support for C++ coverage.
coverage-linux:
runs-on: ubuntu-latest
steps:
Comment thread
bcoe marked this conversation as resolved.
Resolved
Expand All @@ -23,13 +22,18 @@ jobs:
- name: Environment Information
run: npx envinfo
- name: Build
run: make build-ci -j2 V=1 CONFIG_FLAGS="--error-on-warn"
run: make build-ci -j2 V=1 CONFIG_FLAGS="--error-on-warn --coverage"
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
# The cause is most likely coverage's use of the inspector.
- name: Test
run: NODE_V8_COVERAGE=coverage/tmp make run-ci -j2 V=1 TEST_CI_ARGS="-p dots" || exit 0
- name: Report
- name: Report js
run: npx c8 report --check-coverage
- name: Report gcov
run: cd out && ../gcovr/scripts/gcovr \
--gcov-exclude='.*\b(deps|usr|out|cctest|embedding)\b' -v \
-r Release/obj.target --xml -o ../coverage/coverage.xml \
--gcov-executable=gcov
- name: Output file count
run: ls -l coverage/tmp/ | wc -l
- name: Clean tmp
Expand Down

Back | FazBrowse Home | New Git URL