-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
semver-majorimplementation requires increase of "major" version number; "breaking changes"implementation requires increase of "major" version number; "breaking changes"status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: featureenhancement proposalenhancement proposal
Description
Feature Request Checklist
- I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
- I have searched for related issues and issues with the
faq
label, but none matched my issue. - I want to provide a PR to resolve this
Overview
It's an unfortunately common error to check in a test file with .only
. This can hide failures especially when run in a CI system where the number of tests is not reported or easily viewable.
Suggested Solution
Automatically fail the test run when a .only
is found and emit exit code 1.
(This is the behavior of newer test runners such as the builtin Node.js and Deno runners.)
Alternatives
Using a different testing framework. 😄
Additional Info
No response
Metadata
Metadata
Assignees
Labels
semver-majorimplementation requires increase of "major" version number; "breaking changes"implementation requires increase of "major" version number; "breaking changes"status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: featureenhancement proposalenhancement proposal
Type
Projects
Status
No status