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: verify inspector help url works #19887

Merged
merged 1 commit into from
Apr 10, 2018
Merged

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Apr 9, 2018

This commit adds basic functionality testing of the help URL printed when the inspector starts.

Refs: #19871

Note that this test will fail until #19871 or nodejs/build#1219 land. If you want to see it working until then, just add + '/' to the end of helpUrl.

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

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Apr 9, 2018
@BridgeAR
Copy link
Member

BridgeAR commented Apr 9, 2018

Note: nodejs/build#1219 landed.

const { spawnSync } = require('child_process');
const child = spawnSync(process.execPath, ['--inspect', '-e', '""']);
const stderr = child.stderr.toString();
const helpUrl = stderr.match(/For help see (.+)/)[1];
Copy link
Member

Choose a reason for hiding this comment

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

If #19871 lands in its current form, this will need to be updated.

@cjihrig
Copy link
Contributor Author

cjihrig commented Apr 10, 2018

This commit adds basic functionality testing of the
help URL printed when the inspector starts.

PR-URL: nodejs#19887
Refs: nodejs#19871
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@cjihrig cjihrig merged commit dfea13a into nodejs:master Apr 10, 2018
@cjihrig cjihrig deleted the inspector-page branch April 10, 2018 19:44
targos pushed a commit that referenced this pull request Apr 12, 2018
This commit adds basic functionality testing of the
help URL printed when the inspector starts.

PR-URL: #19887
Refs: #19871
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
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.

9 participants