Frank,
This is a terrific piece of work. Thank you for sharing it with us. I'm sure it will help a lot of people to draw their non-technical team members closer into the cukes. Using YARD is precisely the idea I had for http://relishapp.com before Justin persuaded me we could make it into a web service.
If you want some help parsing step definitions, I've done some refactoring around that code so we can all start to think about using Cucumber as a library for other projects, like yours. There's now a StepDefinitions class which you can use. The behaviour is documented here:
http://github.com/aslakhellesoy/cucumber/blob/master/features/api/list_step_defs_as_json.feature
Maybe that will be of some use? Feel free to submit patches or talk to us on #cucumber if you'd like to see more data in the JSON - we've kept it simple for now but it should be relatively easy to add, for example, the location (file/line) where the step definition is defined.
cheers,
Matt
http://blog.mattwynne.net
http://relishapp.com
+44(0)7974 430184
Will this work with non-Ruby step defs (say, at the other end of the
wire protocol)?
Thanks,
Richard
> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>
>
On 15 Oct 2010, at 16:33, Richard Lawrence wrote:
> Matt,
>
> Will this work with non-Ruby step defs (say, at the other end of the
> wire protocol)?
Not yet. We'll need to implement a new message on the wire protocol that queries for all step definitions, and expose it through a new #step_definitions method on Cucumber::WireSupport::WireLanguage.
RIght now I think you'd probably get a NoMethodError if you tried it.
cheers,
Matt
On Oct 15, 2010, at 21:51, Franklin Webber <frankli...@gmail.com> wrote:
> It will not work for Java. At the moment I implemented Ruby handlers
> for step definitions and step transforms. If YARD had a Java file
> parser and object handler I could likely finish one very quickly. It
> doesn't, but could.
>
> In November, I'll see if I can spend some of time, while I am creating
> some articles/tutorials for yardoc.org, in generating a rudimentary
> Java step definition parser.
Don't implement a parser for Java (or any of the 10ish languages supported by Cucumber/Cuke4Duke/Cuke4Nuke.
We'll add native support for this in Cucumber soon.
Aslak
Thanks guys.You guys are awsm.rd