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.

Can't generate steps to a file

See original GitHub issue

Is it possible to add a functionality which allow us to generate steps to a specified target file,

It could be something like this: cucumber-js login.feature --step login.steps.js, which could generate a login.steps.js file.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
charlierudolphcommented, Jan 11, 2017

You can get something close with

cucumber-js login.feature --dry-run --format snippets:login.steps.js

Use the --dry-run flag to prevent it from running any defined steps. Use the snippets formatter which prints just the snippets for undefined steps.

The outputted file will need a few updates to make it work but with all the different languages that transpile to javascript I think that the best we can get.

0reactions
lock[bot]commented, Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cucumber:- Unable to generate step definitions by running ...
I am trying to generate the step definitions from my feature file and as well as I have also designed test runner class...
Read more >
Running Cucumber feature file doesn't generate step definitions
Running Cucumber feature file doesn't generate step definitions · 1. Create a .feature file · 2. Write some Gherkin · 3. Run the...
Read more >
Cannot Generate Step definitions as All steps already bound
Add new feature file and specify some scenarios, right click and select "Generate Step Definitions" a pop up is generated saying that all...
Read more >
No Option To "Generate Step Definitions" In Specflow
Right Click In The Code Editor (And Not The Solution Explorer) And The Option To "Generate Step Definitions" Is There.
Read more >
Unable to create Step Definition file from Specflow feature file
My current issue is I cannot create Step Definition file from he .feature file. The option is not available in the option menu...
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