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
Skipped tests cause the number of failed tests to be decremented by 1. #366
Comments
This seems to be due an issue with how Cypress is counting tests and the stats that get passed to the reporter. Consider your repro case (simplified):
which yields these stats (truncated):
The same tests when run in plain mocha, yield these stats:
Note the difference in the number of Interestingly, if I swap the order of your tests such that the skipped one is last, I get these stats:
I tested with different numbers of tests in various order and what I found is that Cypress is inconsistently reporting the number of |
Describe the bug
In Cypress it is possible to temporarily skip tests by specifying
it.skip
.These tests appear in the report as pending (which, strictly speaking, is not correct, a separate type Skipped would be the better choice here). What is worse, however, is that they affect the number of tests that fail. This number should remain unaffected.
Code Reproduce
Expected behavior
Screenshots
Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: