[v.3.0.2][allure-jest][allure-js-commons] The autotest is displayed as skipped in Allure report when it fails in the beforeEach or beforeAll fixture
Describe the bug The autotest is displayed as skipped in Allure report when it fails in the beforeEach or beforeAll fixture
To Reproduce Steps to reproduce the behavior:
- Add
expect(1).toStrictEqual(2);in beforeAll or beforeEach hook - Run test
- Check allure report
Expected behavior The test is displayed as failed
Screenshots
@lifanov-rza, what test framework are you using?
@baev any updates?
Hey team, I checked the allure-js code and it looks like this behavior starts here: https://github.com/allure-framework/allure-js/pull/1154/files#diff-49e4a85aa62a824a1f425b1be60c4c57fdff7ab1fe7d389da2b5301959da7551R196. When a hook fails, the test is finished as skipped. Is that intentional in allure-js? @baev
The issue for us is that tests failing during setup are marked as skipped, which gets mixed in with real skipped tests and makes the Allure report pass rate misleading. Do we have a recommended way to tell setup failures from actual skips, or should this be treated as a bug?