-
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
Multiple test blocks are running despite .only
#632
Comments
I have the same issue. |
This is mocha's default behavior in the version we are using. It is to be expected. |
@brian-mann |
@zukoaang it seems to be a bug in mocha mochajs/mocha#1481 |
@zukoaang We are on an older version of mocha that will match suites and tests by a regexp. When you put an In later versions they fixed this. We'd need to upgrade to get access to that functionality. We have deep, deep integrations into mocha so upgrading for us isn't a simple The good news is that we've recently talked about doing this so this would "just work" when we do the next upgrade. In the mean time, simply make your titles different enough and you won't see multiple tests and suites run when using an |
Released in 4.0.0 |
Issue in bahmutov/effective-e2e-testing-with-cypress#1 code in https://github.com/bahmutov/effective-e2e-testing-with-cypress/tree/double-only
I think this is because one block has title that is substring of another block
Current behavior:
Runs both blocks despite
.only
Desired behavior:
Run only the block with
describe.only
How to reproduce:
Clone repo, grab branch
double-only
, open CypressAdditional Info (images, stack traces, etc)
The text was updated successfully, but these errors were encountered: