vitalets / playwright-bdd

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

Question: Do we allow run specific tag? #121

Closed zmimi-lael closed 3 months ago

zmimi-lael commented 3 months ago

Hi,

I tried to clone the playwright-bdd-example and add some tags on the sample feature. Then using command npx playwright test -g "@fast" it gives me Error: No tests found

image

vitalets commented 3 months ago

Hi @zmimi-lael In the current playwright-bdd version (6.0.3) you can run specific tags with the following syntax:

npx bddgen --tags "@fast" && npx playwright test

See details here.

In the nearest release there is an upcoming support for the new syntax of Playwright tags #98. After that we will be able to run either:

npx bddgen --tags "@fast" && npx playwright test
# or 
npx bddgen && npx playwright test -g "@fast"