Closed Kerhael closed 4 years ago
When debugging directly in gherkin-testcafe
, we can see that --tags
is not present within process.argv
:
args [
'/home/.../bin/node',
'/.../testcafe/node_modules/.bin/gherkin-testcafe',
'resources',
'features/**/*.feature',
'@test1'
]
Then tagsIndex
is -1
Still investigating...
OK, not a testcafe issue.
We need to add --
before sending arguments to npm run script.
Here is the correct command: npm run gherkin-testcafe resources features/**/*.feature -- --tags ~@test1
Hello,
We are currently setting testcafe on our app.
We are using the following versions:
Here is .testcaferc.json
Here is our feature:
When launching
npm run gherkin-testcafe resources features/**/*.feature --tags ~@test1
, both test1 and test2 are launched.Would you have any idea on what we are missing here?
Thanks a lot