Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI output for new features #586

Closed
dblooman opened this issue May 31, 2016 · 7 comments
Closed

CLI output for new features #586

dblooman opened this issue May 31, 2016 · 7 comments

Comments

@dblooman
Copy link

I'm porting over some tests to Cucumber-js, last time I used Cucumber was with Ruby. With the Ruby version when you would run the Cucumber CLI tool it would give you a list of Steps for you to complete. With the JS version the output is a mixed of comments and the steps as seen below

Is there a flag to just output the steps rather than copying each block of code out from the terminal?

screenshot 2016-05-31 17 03 36

@charlierudolph
Copy link
Member

Hmm. Interesting idea. There is nothing that supports that at the moment. We could add a new formatter that just outputs snippets for undefined steps or this could be something we combine with a usage formatter.

@dblooman
Copy link
Author

What would be good is to be able to have a flag of --output-steps file.js or just --output-steps for dumping to console

@guioconnor
Copy link

+1 for that feature. It would very helpful for an automated workflow from features to a code skeleton with minimal manual effort.

@angeloklin
Copy link

I opened another entry (#618) on the same subject, and charlierudolph pointed me to this one.

I just made a comment there. Below is a copy of it:


Thanks for the pointer. Sure sounds like a good idea.
It could/would disrupt people that have automated and created some scripts/filter, but I would say this should be the default behaviour. 1) It would be closer to cucumber, 2) filters are likely to work the same. It would be great for people that just cut&paste from the output of some CI.

So in short, I would prefer it to be the default, if not, then sure have the option to output just that.

Thanks

@charlesmulder
Copy link

+1 for this feature.

@charlierudolph
Copy link
Member

We now have a snippets formatter which can be used to get just the snippets. That will be available in the next release.

@lock
Copy link

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.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants