Describe the bug
Given the following sequence of actions:
- We are on Windows.
- We define a
{ maxFailures: x, fastFail: true } quality gate in the Allure configuration file.
- We invoke
allure run.
- The quality gate rule is triggered.
Then the test process is terminated without having a chance to perform a cleanup. For example, playwright test is terminated with no afterEach/afterAll functions executed.
This may have the following consequences:
- No proper cleanup (db reset, tmp files removed, etc).
- No Allure metadata from
afterEach/afterAll functions.
To Reproduce
Steps to reproduce the behavior (on a Windows machine):
- Clone the repo.
- Run
npm install.
- Run
npm allure-run.
Messages from afterEach and afterAll are both missing in the standard output.
Additionally, compare the results from Linux, MacOS, and Windows here. The Windows test result is missing the stdout attachment.
Expected behavior
There are two lines in the standard output:
Screenshots
On Linux (afterEach and afterAll messages are here):
On Windows (no afterEach and afterAll messages):
Later.
Additional context
Later.