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

Make CLI output more 'Cucumbery' #194

Closed
wants to merge 1 commit into from
Closed

Conversation

pezholio
Copy link

@pezholio pezholio commented Oct 4, 2017

I really like Turnip. I've struggled with Cucumber for a number of years, but have equally struggled to find an expressive way of writing feature tests in Rspec. One thing I did like about Cucumber is how it output each step as it was executed, and I've tried to implement this in Turnip. Some of it is a bit hacky (for example line 98), so would appreciate any feedback on how to improve it!

@gongo
Copy link
Collaborator

gongo commented Oct 5, 2017

@pezholio Thanks for Pull Request. Great!!

But puts is not suitable for writing in rspec.rb.
Because, output adjustment (indent length etc.) should be done by Formatter.

Could you try https://github.com/gongo/turnip_formatter If want to rich report.
(I want to make a text formatter easy to see 😄 )

@pezholio
Copy link
Author

pezholio commented Oct 5, 2017

I did try a custom formatter, but because each step is part of a test, not the test itself, I struggled, hence this hacky approach. I will have another go with it though, as I'd much rather have a cleaner approach.

@leoc
Copy link
Collaborator

leoc commented Nov 4, 2022

At last... with #249 and aramvisser/turnip_documentation_formatter this should do the trick!

@leoc leoc closed this Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants