You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checked next-gen ES issues and syntax problems by using the same environment and/or transpiler configuration without Mocha to ensure it isn't just a feature that actually isn't supported in the environment in question or a bug in your code.
'Smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, your usage of Mocha, or Mocha itself
Ensured that there is no discrepancy between the locally and globally installed versions of Mocha. You can find them with: node node_modules/.bin/mocha --version(Local) and mocha --version(Global). We recommend that you not install Mocha globally.
Description
Filtering by passes/failures doesn't work properly when either number of test passes/failures is 0.
Steps to Reproduce
Case 1. Run a browser test with all passing tests (n passes, 0 failures). Filter by failure, then filter by passes again.
Case 2. Run a browser test with all failing tests (0 passes, n failures). Filter by passes, then filter by failures again.
Expected behavior:
(Case 1) It should display an empty result when filtered by failure, then show all passing tests when filtered again by passes.
(Case 2) It should display an empty result when filtered by passes, then show all failing tests when filtered again by failures.
Actual behavior: It displays only a single passing/failing test when filtered again.
(Case 1)
Original:
Filtered by Failures:
Filtered by Passes Again:
(Case 2)
Original:
Filtered by Passes:
Filtered by Failures Again:
Reproduces how often: Every time
Versions
The output of mocha --version and node node_modules/.bin/mocha --version: 6.2.0
The output of node --version: 10.15.3
Your operating system
name and version: MacOS Mojave 10.14.6
architecture (32 or 64-bit): 64
Your shell (e.g., bash, zsh, PowerShell, cmd): Terminal
Your browser and version (if running browser tests): Chrome 77.0.3865.90 (64 bit)
The text was updated successfully, but these errors were encountered:
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
Filtering by passes/failures doesn't work properly when either number of test passes/failures is 0.
Steps to Reproduce
Case 1. Run a browser test with all passing tests (n passes, 0 failures). Filter by failure, then filter by passes again.
Case 2. Run a browser test with all failing tests (0 passes, n failures). Filter by passes, then filter by failures again.
Expected behavior:
(Case 1) It should display an empty result when filtered by failure, then show all passing tests when filtered again by passes.
(Case 2) It should display an empty result when filtered by passes, then show all failing tests when filtered again by failures.
Actual behavior: It displays only a single passing/failing test when filtered again.
(Case 1)
Original:
Filtered by Failures:
Filtered by Passes Again:
(Case 2)
Original:
Filtered by Passes:
Filtered by Failures Again:
Reproduces how often: Every time
Versions
mocha --version
andnode node_modules/.bin/mocha --version
: 6.2.0node --version
: 10.15.3The text was updated successfully, but these errors were encountered: