-
-
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
describe.only() does not work when string is the same as another describe() block #1834
Comments
currently expected behavior, see #1807 |
Do you mean that once PR #1807 gets merged the behaviour will be correct? (Cos the examples that I have above certainly do not seem like they are right at all) |
I have a describe block identified with
Tests are run from |
Separately: I have a describe block identified with
0 tests are run. With the |
Ensure you are using the latest version of Mocha (and remove any global install, as global versions of Mocha are not handled correctly at the present time). These issues should be fixed in version 3. If they are not, please open a new issue. (If these are used in the earlier versions of Mocha, the first one will behave as described because |
With two
describe()
blocks that have identical strings,when one of them is a
describe.only()
,only that one's tests should run,
however, both of them run.
More worryingly, if there are other unrelated
describe()
blocks,they also seems to get run for no reason as well.
Changing the string in
describe()
causes the behaviour to be normalThe text was updated successfully, but these errors were encountered: