Skip to content
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

Html Reporter Filtering Issue when number of passes/failures is 0 #4048

Closed
4 tasks done
pec9399 opened this issue Oct 5, 2019 · 0 comments · Fixed by #4051
Closed
4 tasks done

Html Reporter Filtering Issue when number of passes/failures is 0 #4048

pec9399 opened this issue Oct 5, 2019 · 0 comments · Fixed by #4051
Labels
area: browser browser-specific type: bug a defect, confirmed by a maintainer

Comments

@pec9399
Copy link
Contributor

pec9399 commented Oct 5, 2019

Prerequisites

  • Checked that your issue hasn't already been filed by cross-referencing issues with the faq label
  • 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:
스크린샷 2019-10-05 오후 10 14 05

Filtered by Failures:
스크린샷 2019-10-05 오후 10 14 17

Filtered by Passes Again:
스크린샷 2019-10-05 오후 10 14 29

(Case 2)
Original:
스크린샷 2019-10-05 오후 10 22 11

Filtered by Passes:
스크린샷 2019-10-05 오후 10 22 22

Filtered by Failures Again:
스크린샷 2019-10-05 오후 10 22 35

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)
@juergba juergba added area: browser browser-specific type: bug a defect, confirmed by a maintainer and removed unconfirmed-bug labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: browser browser-specific type: bug a defect, confirmed by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants