-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: collect instrumentation metadata and node:test coverage data #6652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… compilation job implementation
🦋 Changeset detectedLatest commit: 2bfc953 The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
hardhatTotal size of the bundle: List of dependencies (sorted by size)
|
v-next/hardhat/src/internal/builtin-plugins/coverage/helpers.ts
Outdated
Show resolved
Hide resolved
v-next/hardhat/src/internal/builtin-plugins/coverage/hook-handlers/solidity.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments, but it looks good in general
* feat: generate lcov coverage report * feat: infer line coverage from statement coverage * fix: line number reporting * wip * feat: display coverage report on the terminal too * chore: refactor coverage manager * feat: use ids in coverage manager handlers * feat: implement coverage for mocha * feat: do not instrument test sources * feat: display coverage report on hardhat test * chore: remove empty file * test: fix coverage manager implementation tests * chore: show - for empty sets in the coverage report * feat: pass coverage library path to edr * chore: add comments * feat: incldue branch coverage in the lcov report * fix: the lcov file * chore: update coverage manager interface * chore: move coverage option check to helpers * chore: format the markdown report better * test: implement more coverage manager tests * feat: pass fs path via the project file preprocessing hook * chore: include fs path in the coverage metadata * feat: replace source name with relative file path in coverage metadata * fix: fix the coverage report formatting rules * chore: use helpers to format total coverage * chore: fix coverge related tests * docs: added changesets * test: fix the path formatting test on windows
This PR implements https://www.notion.so/nomicfoundation/Instrumentation-metadata-and-node-test-coverage-data-collection-1df578cdeaf580eb8847dd730a496df5
Example
pnpm hardhat test node --coverage
output as executed inexample-project
: