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: increase _debugger coverage #8403

Closed
wants to merge 2 commits into from
Closed

Conversation

Trott
Copy link
Member

@Trott Trott commented Sep 4, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test debugger

Description of change

The uncaught exception test for _debugger.js was not exercising some
code (particularly concerning interface_.child) because of the
synchronous nature of the test. This adds an asynchronous version to
increase test coverage.

The uncaught exception test for `_debugger.js` was not exercising some
code (particularly concerning `interface_.child`) because of the
synchronous nature of the test. This adds an asynchronous version to
increase test coverage.
@Trott Trott added debugger test Issues and PRs related to the tests. labels Sep 4, 2016
@Trott
Copy link
Member Author

Trott commented Sep 6, 2016

@Trott
Copy link
Member Author

Trott commented Sep 6, 2016

CI is green (except for perma-yellow AIX).

@Trott
Copy link
Member Author

Trott commented Sep 6, 2016

@nodejs/testing @indutny


assert.doesNotThrow(emit);

debug.start(['sterrance']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wut?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's sending debug.start() an argv array of length 1 to avoid code that exits if argv is empty.

I'll add a comment and/or change sterrance to a more meaningful string.

@indutny
Copy link
Member

indutny commented Sep 7, 2016

LGTM

@jasnell
Copy link
Member

jasnell commented Sep 7, 2016

LGTM with nits addressed.

Trott added a commit to Trott/io.js that referenced this pull request Sep 7, 2016
The uncaught exception test for `_debugger.js` was not exercising some
code (particularly concerning `interface_.child`) because of the
synchronous nature of the test. This adds an asynchronous version to
increase test coverage.

PR-URL: nodejs#8403
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@Trott
Copy link
Member Author

Trott commented Sep 7, 2016

Landed in 801115d

@Trott Trott closed this Sep 7, 2016
Fishrock123 pushed a commit that referenced this pull request Sep 14, 2016
The uncaught exception test for `_debugger.js` was not exercising some
code (particularly concerning `interface_.child`) because of the
synchronous nature of the test. This adds an asynchronous version to
increase test coverage.

PR-URL: #8403
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins
Copy link
Contributor

MylesBorins commented Sep 30, 2016

seeing failures with this being backported

@Trott Trott deleted the debugger-async branch January 13, 2022 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants