kiwigrid / gherkin-testcafe

Run testcafe tests with gherkin syntax
MIT License
69 stars 2 forks source link

Running tests with multiple tags runs only 1st test. #32

Closed bbonczek closed 5 years ago

bbonczek commented 5 years ago

We are currently upgrading testcafe and gherkin-testcafe to new version, and it seems like running tests with multiple tags is not working. We use only CLI interface. To run e2e tests we use this method:

gherkin-testcafe chrome e2e/*.feature e2e/step-definitions/*.js --tags @eHim @mobile @eHimLarge ~@ignore -a \"http-server -p 4200 ./dist/web-drive-profiles\" --appInitDelay 5000 -c 6

This command should run all tests decorated with @eHIM @mobile & @eHIMLarge tags. What happens now, is only tests decorated with '@eHIM' (1st tag) are ran.

Lukas-Kullmann commented 5 years ago

Hey @bbonczek,

sorry for the late response. You have to separate tags by comma for this to work:

gherkin-testcafe chrome e2e/*.feature e2e/step-definitions/*.js --tags @eHim,@mobile,@eHimLarge,~@ignore -a \"http-server -p 4200 ./dist/web-drive-profiles\" --appInitDelay 5000 -c 6

I upgraded the readme with your use-case.