-
Notifications
You must be signed in to change notification settings - Fork 34
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
Hangs when grep results in no tests #3
Comments
The underlying cause is mochajs/mocha#3065, but that may be considered working as intended. |
Hi, I will fix it today. |
dima117
added a commit
that referenced
this issue
Oct 12, 2017
Done! |
Works great! Thanks so much for the quick response :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the
grep
query argument causes no tests to be run, the test runner’send
event is fired synchronously and can’t be caught as line 69 ofrunner.js
. The tests output “0 passing”, but then they just hang instead of closing.For example, if I have the following in
browsertest.html
:Running this hangs:
mocha-headless-chrome --file test-plugins/browsertest.html?grep=unmatchable
If you pass a callback directly to
mocha.run()
, that seems to reliably get called in this scenario.The text was updated successfully, but these errors were encountered: