This repository has been archived by the owner on Dec 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Error filtering tags using cucumberOpts in command line #131
Labels
Comments
How your cli command looks like?
пт, 15 июн. 2018 г. в 13:27, davidrova <[email protected]>:
… 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,
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#131>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGNmZBT0jatevuOOZTzT--vsslDBAi0Qks5t84v9gaJpZM4UpWT4>
.
--
--
Best Regards,
Boris Osipov
|
Hi Boris,
./node_modules/.bin/wdio --env dev --cucumberOpts.tags '@comments'
./e2e/wdio.conf.js
My wdio.conf.js
//
// If you are using Cucumber you need to specify the location of your step
definitions.
cucumberOpts: {
require: ['./e2e/lib/steps/initiatives.js'], // <string[]> (file/dir)
require files before executing features
backtrace: false, // <boolean> show full backtrace for errors
compiler: [], // <string[]> ("extension:module") require files with the
given EXTENSION after requiring MODULE (repeatable)
dryRun: false, // <boolean> invoke formatters without executing steps
failFast: false, // <boolean> abort the run on first failure
format: ['pretty'], // <string[]> (type[:path]) specify the output format,
optionally supply PATH to redirect formatter output (repeatable)
colors: true, // <boolean> disable colors in formatter output
snippets: true, // <boolean> hide step definition snippets for pending steps
source: true, // <boolean> hide source uris
profile: [], // <string[]> (name) specify the profile to use
strict: false, // <boolean> fail if there are any undefined or pending steps
tags: [], // <string[]> (expression) only execute the features or scenarios
with tags matching the expression
timeout: 20000, // <number> timeout for step definitions
ignoreUndefinedDefinitions: false, // <boolean> Enable this config to treat
undefined definitions as warnings.
},
Kind regards,
…On Fri, Jun 15, 2018 at 12:30 PM, Boris Osipov ***@***.***> wrote:
How your cli command looks like?
пт, 15 июн. 2018 г. в 13:27, davidrova ***@***.***>:
> 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,
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#131>, or
mute
> the thread
> <https://github.com/notifications/unsubscribe-
auth/AGNmZBT0jatevuOOZTzT--vsslDBAi0Qks5t84v9gaJpZM4UpWT4>
> .
>
--
--
Best Regards,
Boris Osipov
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGL5FpRaYhPpYmzJoEPfM3LWycYHhDMzks5t84zVgaJpZM4UpWT4>
.
--
Saludos,
---------------------------------
David Rodríguez Vallejo
blog: http://globeros-mtb.blogspot.com
|
I didn't go deep into this issue but understood what was happening and may suggest workaround and replace in your wdio config |
That sounds good. It is similar to my workaround.
Thanks!
On Fri, 15 Jun 2018 at 23:37, Boris Osipov ***@***.***> wrote:
I didn't go deep into this issue but understood what was happening and may
suggest workaround
run
***@***.***" ./node_modules/.bin/wdio --env dev
./e2e/wdio.conf.js
and replace in your wdio config
tags: [] to tags: process.env.CUCUMBER_TAGS || ""
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGL5Fnmc_ODV4S-3sSCWmNPBvqffTRdIks5t9CkggaJpZM4UpWT4>
.
--
Saludos,
…---------------------------------
David Rodríguez Vallejo
blog: http://globeros-mtb.blogspot.com
|
I think these cli args need to properly parsed into arrays. I think this is a bug. |
+1
On Tue, 19 Jun 2018 at 15:46, Christian Bromann ***@***.***> wrote:
I think these cli args need to properly parsed into arrays. I think this
is a bug.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGL5FguL1gsfDHNcw3cpbTrvwZdlJoKBks5t-QCtgaJpZM4UpWT4>
.
--
Saludos,
…---------------------------------
David Rodríguez Vallejo
blog: http://globeros-mtb.blogspot.com
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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,
The text was updated successfully, but these errors were encountered: