question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to run arguments from other CLI in version 7

See original GitHub issue

Since Cucumber is a test runner that’s be used in test frameworks, it’s very useful to be able to use command line arguments from the test framework being used. This is currently possible in Cucumber < 7 (except in parallel), in 7 the result is unknown option --<argument>

I know that other tools don’t generally allow this but I think that for cucumber it does make sense since it’s agnostic to the test tool being run with and enabling the use of command line arguments of the tool in question is an important part of using it. Being able to do it in parallel would be just as helpful.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davidjgosscommented, Nov 28, 2020

Having seen https://github.com/wix/Detox/issues/2487#issuecomment-734929243 (thanks @karlmarxlopez for linking that up) I think we can close this, Detox’s change seems like the right way to me.

0reactions
karlmarxlopezcommented, Nov 27, 2020

@davidjgoss Yup, I’m (we) are using detox.init() method on the hooks of cucumber, but you can’t pass a flag like --headless and other args/flags (as @j320 mentioned) on the configuration.

The workaround I posted above is to dynamically set a single configuration, which Detox automatically selects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Command Line Arguments and How to Use ...
Command line arguments are extra commands you can use when launching a program so that the program's functionality will change.
Read more >
Command-line syntax overview for System.CommandLine
An introduction to the command-line syntax that the System.CommandLine library recognizes by default. Mentions exceptions where syntax in ...
Read more >
Python Command Line Arguments
Python command line arguments are the key to converting your programs into useful and enticing tools that are ready to be used in...
Read more >
Sending command line arguments to npm script - Stack Overflow
npm 2 and newer. It's possible to pass args to npm run since npm 2 (2014). The syntax is as follows: npm run...
Read more >
Command Line Arguments in Python - Stack Abuse
Python 3 supports a number of different ways of handling command line arguments. The built-in way is to use the sys module. In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found