-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add new option "--dry-run" #4640
Conversation
Interesting. What is the use case for this feature? i.e. are we sure people might not misuse this in pipelines to make all tests pass? |
There is an old PR #1070 where quite a few users have been asking for this feature. My main reasoning is: failing hooks are changing the amount of tests being executed. When a hook fails (mainly
No, how could we? This is the responsibility of the user, but we can add some kind of control later, if necessary. |
Just out of curiosity - to me this sounds like a critical feature to integrate mocha in any IDE (when I open it I usually want to see a list of tests and be able to re-run/debug them individually). But obviously this is not the case as it was implemented only recently. How is/was it supposed to be integrated in the IDEs? (I myself got here because I was looking for a way to use TAP in vscode or WebStorm) |
Description
Adds a
--dry-run
option, which executes therunner
and makes alltests
pass without actually running anyhook
/test
.Description of the Change
--dry-run
mocha
, thenrunner
instancehook
ortest
skip
oronly
work as in a normal runadditionally:
utils.dQuote()
andutils.sQuote()
template strings
insteadrelated PR #1070