simple_bdd icon indicating copy to clipboard operation
simple_bdd copied to clipboard

Add a formatter that outputs simple_bdd Gherkin

Open travisp opened this issue 12 years ago • 3 comments

travisp avatar Mar 24 '14 17:03 travisp

Hi @travisp can you give an example, or send a pull request? Would you want to pass in an optional stream during configuration and puts the string out?

robb1e avatar Apr 15 '14 03:04 robb1e

Perhaps this should be better titled "Add the ability to add formatters around simple_bdd Gherkin steps". My thought is that it should fire extra formatter events, similar to cucumber ( https://github.com/cucumber/cucumber/wiki/Custom-Formatters ), around steps and groupings, which would allow this output to different types of formatters (including html formatters for documentation)

simple_bdd has both gherkin steps and a number of methods for wrapping related behaviors(behavior, it_also, etc.), but none of these are provided to formatters.

I may have something to provide for a PR in a bit.

travisp avatar Apr 16 '14 12:04 travisp

Ok, I see where you're going. Yeah, send a pull request when you have something. I'd be interested to see the direction you're thinking.

robb1e avatar Apr 18 '14 12:04 robb1e