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

When mocha runs in parallel mode, the failed test cases appear yellow instead of red. #1739

Closed
jamesmortensen opened this issue Aug 20, 2022 · 1 comment
Labels
type:bug Something isn't working

Comments

@jamesmortensen
Copy link

Describe the bug

When we run tests, any test which fails due to an AssertionError is reported in Allure in red, as a failing test. Any other thrown Error is reported as a broken test, in yellow.

While this functionality works as expected in sequential mode, failed tests are reported as broken tests (in yellow) when run in parallel.

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repo: https://github.com/jamesmortensen/allure-js-reporter-issues#when-run-in-parallel-mode-with-hooks-hookerror-is-not-a-function and follow the instructions to run the tests and generate the report.

The example has us run tests in sequential mode as well as parallel mode. The README also has screenshots which show the issue.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Environment (please complete the following information):

| Allure version | 2.9.0 | (not sure what this is - see below for details)
| --- | --- |
| Test framework | [email protected] | [email protected]
| Allure adaptor | [email protected] | [email protected]
| Generate report using | [email protected] |

Additional context

@jamesmortensen
Copy link
Author

Duplicate of allure-framework/allure-js#485

@jamesmortensen jamesmortensen closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant