selenium-cucumber-js icon indicating copy to clipboard operation
selenium-cucumber-js copied to clipboard

"--no-colors" OR generic cucumber options

Open bricas opened this issue 7 years ago • 4 comments

Apologies for being a pest, BUT, for our jenkins test runner, it's very helpful to use the --no-colors option with cucumber otherwise we get a bunch of escape codes like [32m✔ Then the tag "title" should be visible[39m in our output.

So I was wondering if there was a generic mechanism to pass options to cucumber, or do you have to mirror specific options to be passed through?

Thanks once more.

bricas avatar Jul 24 '17 14:07 bricas

FYI, in the meantime i'm doing:

<command>|perl -pe 's/\e\[[\d;]*m//g;'

which seems to do what i want.

bricas avatar Jul 24 '17 14:07 bricas

Hi @bricas, a switch to forward all commands to cucumber is a good idea. @leggebroten suggest a config file #17 - I wonder if that might be a better option?

Anything more advanced than the current command switches could go into a config.json

john-doherty avatar Jul 25 '17 20:07 john-doherty

BTW @bricas - you're not a pest at all. It's great to get the feedback, you've raised some very valid issues :)

john-doherty avatar Jul 25 '17 20:07 john-doherty

A config file would be perfectly acceptable.

Cheers :)

bricas avatar Jul 25 '17 23:07 bricas