forked from vercel/pkg
-
-
Notifications
You must be signed in to change notification settings - Fork 61
test: split unit tests into node:test suite, add c8 coverage #271
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7779043
test: split unit tests into node:test suite and add c8 coverage
robertsLando 425e34f
test(unit): extend coverage — compress_type, detector, esm-transforme…
robertsLando aa1f7c5
test(unit): cover target parser, TLA-with-imports, detector + realpat…
robertsLando 8f369e7
test(unit): address Copilot review — drop unused infoed, clarify cove…
robertsLando 5f87416
ci(codecov): upload unit-suite lcov on every PR + README badge
robertsLando f4d5644
ci(codecov): add slug + step name, keep unit-flag upload
robertsLando fd1eec9
ci(codecov): add nightly e2e-coverage job, drop "(unit)" from badge alt
robertsLando 0858abd
ci(codecov): carryforward both flags so PRs report merged unit+e2e to…
robertsLando 99c73af
docs: refresh stale "follow-up" comments — nightly e2e already landed
robertsLando b54205b
ci(codecov): collect e2e coverage from existing Ubuntu cells, drop ni…
robertsLando f52c852
ci(codecov): forward secrets to test.yml, fix c8 remap config
robertsLando 64ac5f5
test(detector): clarify descent-stop test, fix CI comment ref
robertsLando File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "include": ["lib/**"], | ||
| "exclude": [ | ||
| "lib/log.js", | ||
| "lib/**/*.d.ts", | ||
| "test/**", | ||
| "prelude/**", | ||
| "scripts/**", | ||
| "dictionary/**" | ||
| ], | ||
| "exclude-after-remap": true, | ||
| "reports-dir": "coverage", | ||
| "all": true, | ||
| "temp-directory": "coverage/tmp", | ||
| "reporter": ["text", "lcov"] | ||
| } |
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
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
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
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
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
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
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
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 |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # Codecov config — keep coverage informational, don't gate PRs on it. | ||
| # Every PR uploads BOTH flags: `unit` from build_artifact (fast), and `e2e` | ||
| # from the two canonical Ubuntu e2e cells in test.yml (Node 22 + Node 24). | ||
| # Codecov merges flags per commit, so the total reflects unit + e2e natively. | ||
| coverage: | ||
| status: | ||
| project: | ||
| default: | ||
| # Report but never fail the PR. Coverage swings naturally with the | ||
| # unit-vs-e2e split and the 24h lag on e2e refreshes. | ||
| target: auto | ||
| threshold: 5% | ||
| informational: true | ||
| patch: | ||
| default: | ||
| # New lines should be covered by the unit suite when reasonable, but | ||
| # many changes land in integration-heavy modules (walker, producer, | ||
| # packer) that stay e2e-tested. Warn, don't fail. | ||
| informational: true | ||
|
|
||
| comment: | ||
| layout: "reach, diff, files" | ||
| behavior: default | ||
| require_changes: true | ||
|
|
||
| ignore: | ||
| - "lib-es5/**" | ||
| - "test/**" | ||
| - "prelude/**" | ||
| - "dictionary/**" | ||
| - "scripts/**" | ||
| - "docs-site/**" | ||
| - "**/*.d.ts" | ||
|
|
||
| # carryforward is a safety net: if one of the two flag uploads fails (e.g. | ||
| # Codecov outage mid-run, an e2e cell crashes), Codecov reuses the last known | ||
| # value for that flag on the new commit. With both flags uploaded per PR the | ||
| # normal case doesn't depend on it, but keeping it set avoids a zeroed-out | ||
| # report on transient upload failures. | ||
| flags: | ||
| unit: | ||
| paths: | ||
| - lib/ | ||
| carryforward: true | ||
| e2e: | ||
| paths: | ||
| - lib/ | ||
| carryforward: true |
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.