Short Version:
How can I parse a single gherkin feature file, JSON result is fine.
json_feature = awesome_method(::Rails.root + 'path/to/my.feature')
Longer Version:
Still looking for a good way to share my features with my client
base. This is what I think an great spec for a gem would be:
1. would be exposed as a Rack Engine. So all a use would need to do
is:
mount Cucumber::Server => "/features", :as => "features"
and bam navigate to features share all the goodness
2. would parse and serve the features directory. No need to run the
cucumber command to generate the results
3. All comments will be run through RedCloth or the like
4. Nice (a la Relish) navigation
5. index.md or index.html will be displayed when a folder is navigated
to.
I have not been able to find this, so I'm going to give it a crack.
I was combing through the Gherkin/Cucumber source and I struggled to
find the best way to parse a single file. Any tips?
Thanks,
Jonathan
I just added an example for you here:
https://github.com/cucumber/gherkin/blob/master/examples/parse_and_output_json.rb
> Longer Version:
>
> Still looking for a good way to share my features with my client
> base. This is what I think an great spec for a gem would be:
>
> 1. would be exposed as a Rack Engine. So all a use would need to do
> is:
>
> mount Cucumber::Server => "/features", :as => "features"
>
> and bam navigate to features share all the goodness
>
> 2. would parse and serve the features directory. No need to run the
> cucumber command to generate the results
>
> 3. All comments will be run through RedCloth or the like
>
> 4. Nice (a la Relish) navigation
>
> 5. index.md or index.html will be displayed when a folder is navigated
> to.
>
> I have not been able to find this, so I'm going to give it a crack.
>
There are at least half a dozen or so defunkt projects on Github that
do this :-)
Is it the hosted nature of Relish that prevents you from using it?
Aslak
> I was combing through the Gherkin/Cucumber source and I struggled to
> find the best way to parse a single file. Any tips?
>
> Thanks,
>
> Jonathan
>
> --
> 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.
>
>
First -- Thanks for Cucumber. It has transformed the way I develop.
Second -- thanks for the gist -- just what I need
Re: Relish. Its primarily the hosted nature that prevents me from
using it. Most of the applications that I build are not open source.
It would be awesome, if Relish was exposed as a Gem. So you can chose
to use the hosted version, or embed it into your rack app. Also, I
asked for an invite, and haven't been provided one. So I cannot
comment on it at length.
Re: Other projects that do this. Can you recommend one? Do any
work? I am surprised that something is not being maintained. To me
it is core to the cucumber philosophy to easily exchange ideas between
developers and their non-technical business counterpoints. If you
think this is a worthwhile endeavor -- I'll give it a shot.
Thanks again for all your work.
-- Jonathan
On Nov 22, 2:49 am, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> On Tue, Nov 22, 2011 at 3:57 AM, jonathan <jtush...@gmail.com> wrote:
> > Hi guys,
>
> > Short Version:
>
> > How can I parse a single gherkin feature file, JSON result is fine.
>
> > json_feature = awesome_method(::Rails.root + 'path/to/my.feature')
>
> I just added an example for you here:https://github.com/cucumber/gherkin/blob/master/examples/parse_and_ou...