An option should be added in Playwright to automatically fail dependent tests when their prerequisite tests fail. This feature would ensure that if setup tests fail, any dependent tests are also reported as failed, rather than skipped.
Currently, in our CI/CD pipelines, setup tests configure portals which are later used by other test projects. If these setup tests fail, dependent tests are skipped, leading to inaccurate test reporting. For example, our pipeline reports show only 10 tests completed out of 200+, as the skipped tests are not properly accounted for.
In the above image, the total tests count shown in 10, even though we have 200+ tests in the pipeline. The rest are skipped as the dependency tests are failed.
Example
No response
Motivation
This feature will help make reporting accurate as both skipped and failed tests will show up as failed, as they are not run in the pipeline.
🚀 Feature Request
An option should be added in Playwright to automatically fail dependent tests when their prerequisite tests fail. This feature would ensure that if setup tests fail, any dependent tests are also reported as failed, rather than skipped.
Currently, in our CI/CD pipelines, setup tests configure portals which are later used by other test projects. If these setup tests fail, dependent tests are skipped, leading to inaccurate test reporting. For example, our pipeline reports show only 10 tests completed out of 200+, as the skipped tests are not properly accounted for.
In the above image, the total tests count shown in 10, even though we have 200+ tests in the pipeline. The rest are skipped as the dependency tests are failed.
Example
No response
Motivation
This feature will help make reporting accurate as both skipped and failed tests will show up as failed, as they are not run in the pipeline.