[rspec-users] Example group parallel execution

Joe Ocampo agilejoe at gmail.com
Fri Jun 5 11:23:29 EDT 2009


Thanks David!

I will be sure to let you know our progress.

Joe Ocampo
agilejoe.lostechies.com


On Fri, Jun 5, 2009 at 10:07 AM, David Chelimsky <dchelimsky at gmail.com>wrote:

> On Fri, Jun 5, 2009 at 9:44 AM, Joe Ocampo <agilejoe at gmail.com> wrote:
> > So I am working on a project right now where we are combining Selenium
> and
> > RSpec.  It was working really well until we implemented the grid and
> started
> > to do parallel execution on the specs to help speed things up. We are
> > rolling are own framework as DeepTest did not really provide the
> facilities
> > we were hoping.
> >
> > Our problem is that we have mutiple context per file.  Currently the
> Thread
> > runner executes the files in paralle per file. As you can imagine this
> isn't
> > very efficient once the grid executes it, as it simply turns a prallel
> > prococess back into a serial one once it parses the file.  My question is
> > where should I hook into RSpec to incercept the call of when the example
> > group "context" is being executed as an atomic unit?
>
> This is something that rspec doesn't support with a formal API yet,
> and until we formalize it this is subject to change. That said, I
> think you're looking for the run() method in
> Spec::Runner::ExampleGroupRunner.
>
> Let me know if that gets you what you're looking for.
>
> >
> > Thanks for your help in advance.
> >
> > Joe Ocampo
> > agilejoe.lostechies.com
> >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090605/f88de247/attachment.html>


More information about the rspec-users mailing list