The Wayback Machine - https://web.archive.org/web/20201101034043/https://github.com/nodejs/node/pull/35797
Skip to content
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

test: add onerror test cases to policy #35797

Closed
wants to merge 1 commit into from

Conversation

@watilde
Copy link
Member

@watilde watilde commented Oct 25, 2020

Increase test coverage of lib/internal/policy/manifest.js

Refs: https://coverage.nodejs.org/coverage-642f2064c06793b7/lib/internal/policy/manifest.js.html#L60
Refs: https://coverage.nodejs.org/coverage-642f2064c06793b7/lib/internal/policy/manifest.js.html#L146

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines
@watilde watilde added the test label Oct 25, 2020
@watilde watilde force-pushed the watilde:test-policy-onerror branch from 878cfeb to ab64c67 Oct 25, 2020
@watilde watilde changed the title test: add onerror test acses to policy test: add onerror test cases to policy Oct 25, 2020
@watilde watilde force-pushed the watilde:test-policy-onerror branch from ab64c67 to 262a4c8 Oct 25, 2020
@bcoe
Copy link
Member

@bcoe bcoe commented Oct 25, 2020

@watilde are you able to follow these updated instructions, to check coverage locally?

@codecov-io

This comment has been hidden.

@bcoe
Copy link
Member

@bcoe bcoe commented Oct 25, 2020

@watilde I can see your change here, and it successfully increases coverage on the file (see: here).

@bcoe bcoe mentioned this pull request Oct 25, 2020
4 of 4 tasks complete
Increase test coverage of lib/internal/policy/manifest.js
@watilde watilde force-pushed the watilde:test-policy-onerror branch from 262a4c8 to e63d487 Oct 25, 2020
@watilde
Copy link
Member Author

@watilde watilde commented Oct 25, 2020

@bcoe That doc is v good to know! I ran in my local now and could confirm the coverage was increased as expected with my last pushed commit:
coverage1
Coverage

@bcoe
bcoe approved these changes Oct 25, 2020
@nodejs-github-bot

This comment has been hidden.

@Trott
Trott approved these changes Oct 28, 2020
@github-actions
Copy link

@github-actions github-actions bot commented Oct 29, 2020

Commit Queue failed
- Loading data for nodejs/node/pull/35797
✔  Done loading data for nodejs/node/pull/35797
----------------------------------- PR info ------------------------------------
Title      test: add onerror test cases to policy (#35797)
Author     Daijiro Wachi  (@watilde)
Branch     watilde:test-policy-onerror -> nodejs:master
Labels     author ready, policy, test
Commits    1
 - test: add onerror test cases to policy
Committers 1
 - Daijiro Wachi 
PR-URL: https://github.com/nodejs/node/pull/35797
Refs: https://coverage.nodejs.org/coverage-642f2064c06793b7/lib/internal/policy/manifest.js.html#L60
Refs: https://coverage.nodejs.org/coverage-642f2064c06793b7/lib/internal/policy/manifest.js.html#L146
Reviewed-By: Ben Coe 
Reviewed-By: James M Snell 
Reviewed-By: Rich Trott 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/35797
Refs: https://coverage.nodejs.org/coverage-642f2064c06793b7/lib/internal/policy/manifest.js.html#L60
Refs: https://coverage.nodejs.org/coverage-642f2064c06793b7/lib/internal/policy/manifest.js.html#L146
Reviewed-By: Ben Coe 
Reviewed-By: James M Snell 
Reviewed-By: Rich Trott 
--------------------------------------------------------------------------------
   ✔  Last GitHub Actions successful
   ℹ  Last Full PR CI on 2020-10-27T14:36:48Z: https://ci.nodejs.org/job/node-test-pull-request/33886/
- Querying data for job/node-test-pull-request/33886/
✔  Build data downloaded
- Querying failures of job/node-test-commit/41685/
✔  Data downloaded
   ✖  3 failure(s) on the last Jenkins CI run
   ℹ  This PR was created on Sun, 25 Oct 2020 14:14:02 GMT
   ✔  Approvals: 3
   ✔  - Ben Coe (@bcoe): https://github.com/nodejs/node/pull/35797#pullrequestreview-516404681
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/35797#pullrequestreview-516924772
   ✔  - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/35797#pullrequestreview-518679268
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu

Commit Queue action: https://github.com/nodejs/node/actions/runs/334784370

@nodejs-github-bot

This comment has been hidden.

watilde added a commit that referenced this pull request Oct 29, 2020
Increase test coverage of lib/internal/policy/manifest.js

PR-URL: #35797
Refs: https://coverage.nodejs.org/coverage-642f2064c06793b7/lib/internal/policy/manifest.js.html#L60
Refs: https://coverage.nodejs.org/coverage-642f2064c06793b7/lib/internal/policy/manifest.js.html#L146
Reviewed-By: Ben Coe <bencoe@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@watilde
Copy link
Member Author

@watilde watilde commented Oct 29, 2020

Landed in 802c98d

@watilde watilde closed this Oct 29, 2020
@watilde watilde deleted the watilde:test-policy-onerror branch Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
6 participants
You can’t perform that action at this time.