vitalets / playwright-bdd

BDD testing with Playwright runner
https://vitalets.github.io/playwright-bdd/
MIT License
287 stars 33 forks source link

Feature: add @fail into the default tags to allow test.fail() functionality to be easily applied. #123

Closed RichardCariven closed 5 months ago

RichardCariven commented 6 months ago

The problem Playwright allows the ability to mark tests as failing, this means they will run but not fail the test unless they actually pass. This can be useful as a way of marking a feature with known bugs as knowingly failing rather then just marking it to be skipped, or using fixme, which may be incorrect as the feature might be right but a low priority bug is present that needs to be fixed.

A solution add in '@ fail' as a default cucumber tag allowing this to run alongside the '@ skip' and the '@ fixme' tags.

vitalets commented 5 months ago

Released in v6.1.0. See special tags in docs. Thanks for the suggestion! Feel free to re-open if there are any issues.