X Tutup
The Wayback Machine - https://web.archive.org/web/20220409062934/https://github.com/nodejs/node/pull/42327
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 test for exception handlings in debugger #42327

Merged
merged 2 commits into from Apr 2, 2022

Conversation

Copy link
Contributor

@cola119 cola119 commented Mar 14, 2022

This PR added tests for error cases that might happen when the debugger backend server returns an invalid response.
This improves code coverage (here) from 89.01% to 90.7% in lib/internal/debugger/inspector_client.js.

before after
image image
image image

@nodejs-github-bot nodejs-github-bot added needs-ci test labels Mar 14, 2022
test/parallel/test-debugger-invalid-json.js Outdated Show resolved Hide resolved
test/parallel/test-debugger-invalid-json.js Outdated Show resolved Hide resolved
test/parallel/test-debugger-invalid-json.js Outdated Show resolved Hide resolved
test/parallel/test-debugger-invalid-json.js Outdated Show resolved Hide resolved
test/parallel/test-debugger-invalid-json.js Outdated Show resolved Hide resolved
test/parallel/test-debugger-invalid-json.js Outdated Show resolved Hide resolved
@cola119 cola119 requested a review from aduh95 Mar 14, 2022
@aduh95 aduh95 added author ready request-ci labels Mar 14, 2022
@github-actions github-actions bot removed the request-ci label Mar 14, 2022
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Mar 14, 2022

@Trott Trott added the request-ci label Mar 14, 2022
@github-actions github-actions bot removed the request-ci label Mar 14, 2022
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Mar 14, 2022

@aduh95 aduh95 added the commit-queue label Apr 2, 2022
@nodejs-github-bot nodejs-github-bot removed the commit-queue label Apr 2, 2022
@nodejs-github-bot nodejs-github-bot merged commit eda2498 into nodejs:master Apr 2, 2022
59 checks passed
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 2, 2022

Landed in eda2498

juanarbol added a commit to juanarbol/node that referenced this issue Apr 5, 2022
PR-URL: nodejs#42327
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@juanarbol juanarbol mentioned this pull request Apr 5, 2022
@juanarbol juanarbol mentioned this pull request Apr 5, 2022
juanarbol added a commit that referenced this issue Apr 6, 2022
PR-URL: #42327
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@cola119 cola119 deleted the add-exception-test-cases branch Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready needs-ci test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants
X Tutup