-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Nested .only is ignored #3818
Comments
The second
If you want to run only that one test case, use the |
Okay, and what is preventing cypress from using mocha v3?
… On 25 Mar 2019, at 21:33, Zach Bloomquist ***@***.***> wrote:
The second .only will be superseded by the first .only. Cypress is based on Mocha 2.x, and before Mocha 3, only one .only can be used at a time:
Previous to v3.0.0, .only() used string matching to decide which tests to execute; this is no longer the case. In v3.0.0 or newer, .only() can be used multiple times to define a subset of tests to run
https://mochajs.org/#exclusive-tests
If you want to run only that one test case, use the it.only. If you only want to run that describe, use the describe.only.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@Floriferous It would be a potentially breaking change for existing users. Cypress will upgrade to Mocha v5.2.0 as part of the next major release, |
Current behavior:
When a
describe
with a.only
contains anit
with a.only
as well, it ignores the second one and runs the full test suite.Desired behavior:
The nested
it
should be the only test that is run.Steps to reproduce: (app code and test code)
Versions
Cypress 3.1.5
The text was updated successfully, but these errors were encountered: