You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I want to make sure that I still only run my Smoke or Regression tests
For instance below, I want to be able to only run the Smoke or Regression test, and then only run that against the Mobile device, not have both tests run for every mobile test.
@smoke
@mobile
Scenario: some smoke test
@regression
@mobile
Scenario: some regression test
Does Playwright BDD filter out tests via tags first and then run the playwright.config filter against each test. Or will it just run all the tests that are tagged regardless of if the tag is in the Playwright BDD run command, or the Playwright Config?
is there an alternative way you would suggest setting up these kinds of scenarios?
The text was updated successfully, but these errors were encountered:
Tags passed to bddgen command filter which features/scenarios will be generated.
Tags passed to playwright grep filter which of generated tests will run.
For this example:
@smoke@mobileScenario: some smoke test @regression@mobileScenario: some regression test
Command to run smoke on mobile should be:
npx bddgen --tags '@smoke' && npx playwright test --project=Iphone
I have my tests split up by Tag into Smoke, Regression, and Dev which I then use different run commands to kick off based on the environment/situation
Eg.
However I now also want to use the Grep functionality in playwright config to set up certain tests to be mobile or web, or both,
For instance below, I want to be able to only run the Smoke or Regression test, and then only run that against the Mobile device, not have both tests run for every mobile test.
Does Playwright BDD filter out tests via tags first and then run the playwright.config filter against each test. Or will it just run all the tests that are tagged regardless of if the tag is in the Playwright BDD run command, or the Playwright Config?
is there an alternative way you would suggest setting up these kinds of scenarios?
The text was updated successfully, but these errors were encountered: