-
-
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
mocha -h
doesn't always display help
#2745
Labels
status: waiting for author
waiting on response from OP - more information needed
type: bug
a defect, confirmed by a maintainer
Comments
Zarel
added a commit
to Zarel/mocha
that referenced
this issue
Mar 17, 2017
Previously, having options in `test/mocha.opts` would add those to `process.argv` to be passed to `program.parse`, which would make it stop showing help. Fixes mochajs#2745
drazisil
added
type: bug
a defect, confirmed by a maintainer
unconfirmed
and removed
unconfirmed
labels
Mar 30, 2017
Zarel
added a commit
to Zarel/mocha
that referenced
this issue
Jun 14, 2017
Previously, having options in `test/mocha.opts` would add those to `process.argv` to be passed to `program.parse`, which would make it stop showing help. Fixes mochajs#2745
I am a bot that watches issues for inactivity. |
There is a pull request for a fix. The only reason it hasn't been merged yet is because Node 0.10 doesn't support the method used to test it. |
Zarel
added a commit
to Zarel/mocha
that referenced
this issue
Oct 17, 2017
Previously, having options in `test/mocha.opts` would add those to `process.argv` to be passed to `program.parse`, which would make it stop showing help. Fixes mochajs#2745
ScottFreeCode
pushed a commit
that referenced
this issue
Oct 18, 2017
OmgImAlexis
referenced
this issue
in agenda/agenda
Jun 26, 2018
This Pull Request updates dependency [mocha](https://github.com/mochajs/mocha) from `v4.0.1` to `v4.1.0` <details> <summary>Release Notes</summary> ### [`v4.1.0`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#​410--2017-12-28) [Compare Source](mochajs/mocha@v4.0.1...v4.1.0) This is mainly a "housekeeping" release. Welcome [@​Bamieh] and [@​xxczaki] to the team! #### 🐛 Fixes - [#​2661]: `progress` reporter now accepts reporter options ([@​canoztokmak]) - [#​3142]: `xit` in `bdd` interface now properly returns its `Test` object ([@​Bamieh]) - [#​3075]: Diffs now computed eagerly to avoid misinformation when reported ([@​abrady0]) - [#​2745]: `--help` will now help you even if you have a `mocha.opts` ([@​Zarel]) #### 🎉 Enhancements - [#​2514]: The `--no-diff` flag will completely disable diff output ([@​CapacitorSet]) - [#​3058]: All "setters" in Mocha's API are now also "getters" if called without arguments ([@​makepanic]) #### 📖 Documentation - [#​3170]: Optimization and site speed improvements ([@​Munter]) - [#​2987]: Moved the old [site repo](https://github.com/mochajs/mochajs.github.io) into the main repo under `docs/` ([@​boneskull]) - [#​2896]: Add [maintainer guide](https://github.com/mochajs/mocha/blob/master/MAINTAINERS.md) ([@​boneskull]) - Various fixes and updates ([@​xxczaki], [@​maty21], [@​leedm777]) #### 🔩 Other - Test improvements and fixes ([@​eugenet8k], [@​ngeor], [@​38elements], [@​Gerhut], [@​ScottFreeCode], [@​boneskull]) - Refactoring and cruft excision ([@​38elements], [@​Bamieh], [@​finnigantime], [@​boneskull]) [#​2661]: `https://github.com/mochajs/mocha/issues/2661` [#​3142]: `https://github.com/mochajs/mocha/issues/3142` [#​3075]: `https://github.com/mochajs/mocha/pull/3075` [#​2745]: `https://github.com/mochajs/mocha/issues/2745` [#​2514]: `https://github.com/mochajs/mocha/issues/2514` [#​3058]: `https://github.com/mochajs/mocha/issues/3058` [#​3170]: `https://github.com/mochajs/mocha/pull/3170` [#​2987]: `https://github.com/mochajs/mocha/issues/2987` [#​2896]: `https://github.com/mochajs/mocha/issues/2896` [@​canoztokmak]: https://github.com/canoztokmak [@​Bamieh]: https://github.com/Bamieh [@​abrady0]: https://github.com/abrady0 [@​Zarel]: https://github.com/Zarel [@​CapacitorSet]: https://github.com/CapacitorSet [@​xxczaki]: https://github.com/xxczaki [@​maty21]: https://github.com/maty21 [@​leedm777]: https://github.com/leedm777 [@​eugenet8k]: https://github.com/eugenet8k [@​38elements]: https://github.com/38elements [@​Gerhut]: https://github.com/Gerhut [@​finnigantime]: https://github.com/finnigantime --- </details> --- This PR has been generated by [Renovate Bot](https://renovatebot.com).
This was referenced Sep 22, 2018
Closed
Closed
This was referenced Sep 23, 2018
Closed
This was referenced Oct 2, 2018
This was referenced Oct 31, 2018
This was referenced Nov 12, 2018
This was referenced Dec 1, 2018
This was referenced Dec 8, 2018
This was referenced Dec 23, 2018
sgilroy
pushed a commit
to TwineHealth/mocha
that referenced
this issue
Feb 27, 2019
* Make sure `mocha -h` consistently shows help Previously, having options in `test/mocha.opts` would add those to `process.argv` to be passed to `program.parse`, which would make it stop showing help. Fixes mochajs#2745
JoshuaKGoldberg
added
status: waiting for author
waiting on response from OP - more information needed
and removed
status: pr needs work
labels
Dec 27, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
status: waiting for author
waiting on response from OP - more information needed
type: bug
a defect, confirmed by a maintainer
Pretty straightforward testcase:
In other words, if
test/mocha.opts
exists,mocha -h
won't display help.The text was updated successfully, but these errors were encountered: