Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Error filtering tags using cucumberOpts in command line #131

Open
davidrova opened this issue Jun 15, 2018 · 6 comments
Open

Error filtering tags using cucumberOpts in command line #131

davidrova opened this issue Jun 15, 2018 · 6 comments
Labels

Comments

@davidrova
Copy link

Hi,

I'm using webdriverio v4.12.0, trying to filter tags using the command line.

There is a problem in the cli.js and in wdio.conf.js because the cli converts tags in an array of strings.

An array of strings cause an exception in runtime.
ERROR: expr.charAt is not a function firefox Type at tokenize (.....tag_expression_parser.js:87:20)

If you use a string instead an array it works.

Kind regards,

@BorisOsipov
Copy link
Contributor

BorisOsipov commented Jun 15, 2018 via email

@davidrova
Copy link
Author

davidrova commented Jun 15, 2018 via email

@BorisOsipov
Copy link
Contributor

I didn't go deep into this issue but understood what was happening and may suggest workaround
run
CUCUMBER_TAGS="@comments" ./node_modules/.bin/wdio --env dev ./e2e/wdio.conf.js

and replace in your wdio config
tags: [] to tags: process.env.CUCUMBER_TAGS || ""

@davidrova
Copy link
Author

davidrova commented Jun 16, 2018 via email

@christian-bromann
Copy link
Contributor

I think these cli args need to properly parsed into arrays. I think this is a bug.

@davidrova
Copy link
Author

davidrova commented Jun 19, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants