use ParallelTests::Gherkin and it should work :)


On Fri, Jun 28, 2013 at 6:16 AM, Izaak (John) Alpert <
notifications@github.com> wrote:

> In lib/parallel_tests/gherkin_bdd/runner.rb:
>
> > @@ -0,0 +1,79 @@
> > +require "parallel_tests/test/runner"
> > +require 'shellwords'
> > +
> > +module ParallelTests
> > +  module GherkinBDD
>
> I actually did this first, and it collided with gherkin, when loading the
> parser in grouper.rb
>
>      def build_features_with_steps(tests, options)
>         require 'parallel_tests/gherkin_bdd/gherkin_listener'
>         listener = GherkinBDD::GherkinListener.new
>         listener.ignore_tag_pattern = Regexp.compile(options[:ignore_tag_pattern]) if options[:ignore_tag_pattern]
>         parser = Gherkin::Parser::Parser.new(listener, true, 'root')
>         tests.each{|file|
>           parser.parse(File.read(file), file, 0)
>         }
>         listener.collect.sort_by{|_,value| -value }
>       end
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/grosser/parallel_tests/pull/232/files#r4938073>
> .
>