-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
--inspect can no longer be used as a flag through gulp #42701
Conversation
...wait, how did this change? The last publish of |
It’s been broken for 8 months. |
So, I tested |
Maybe we should just rename it to a 3rd name that doesn't conflict? |
|
@@ -453,8 +453,7 @@ task("runtests").flags = { | |||
"-t --tests=<regex>": "Pattern for tests to run.", | |||
" --failed": "Runs tests listed in '.failed-tests'.", | |||
"-r --reporter=<reporter>": "The mocha reporter to use.", | |||
"-d --debug": "Runs tests in debug mode (NodeJS 6 and earlier)", | |||
"-i --inspect": "Runs tests in inspector mode (NodeJS 8 and later)", | |||
"-i --break": "Runs tests in inspector mode (NodeJS 8 and later)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want -i
to be the shorthand for `--break?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷 it's backward compatible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd sorta doubt anyone is taking a hard automated dependency on it, so I wouldn't worry about that too much. 😄
Either way I'll leave it up to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-b
is already taken by --browser
despite not being documented in the Gulpfile, so I’m not sure what else to call it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well...who even runs that one? Anyway, it's not a big deal.
gulp-cli removes
--inspect
and--inspect-brk
fromprocess.argv
and passes it straight to the Node process that’s running gulp, which is not the same Node process that runs mocha for us, so our test runner never sees--inspect
as a flag. Using-i
also wasn’t working, as that launched node with--inspect-brk=true
, so I fixed that, and updated docs.