Support for multiple pre_fork and each_run blocks

5 views
Skip to first unread message

Karl Baum

unread,
Dec 14, 2009, 3:25:01 PM12/14/09
to spor...@googlegroups.com
The cucumber team encourages custom additions to env.rb to be placed in a file separate from the env.rb file.  This allows for easy upgrade of cucumber without having to figure out what was generated by cucumber and what was manually added by the developers.  The problem is that the spork each_run and pre_fork blocks are by default included within the env.rb file.  This makes sense for the default cucumber settings but not for custom cucumber settings that also go within the pre_fork and each_run block.  Is it possible to declare additional pre_fork and each_run blocks in another file outside of the env.rb?  This would allow for a clear separation between what was generated by cucumber and what was added by the developers using cucumber.

Hope this makes sense.

Thx.

-karl

Tim Harper

unread,
Dec 15, 2009, 9:53:16 AM12/15/09
to spor...@googlegroups.com

Hi carl!

Yes, this should be possible (I designed it with that in mind... but I d9nt have any tests to prove its working... I should add one).

--

You received this message because you are subscribed to the Google Groups "sporkgem" group.
To post to this group, send email to spor...@googlegroups.com.
To unsubscribe from this group, send email to sporkgem+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sporkgem?hl=en.

Karl Baum

unread,
Dec 15, 2009, 12:36:47 PM12/15/09
to spor...@googlegroups.com
Cool.. I will give it a try and let you know.

Thx.
To unsubscribe from this group, send email to sporkgem+u...@googlegroups.com <mailto:sporkgem%2Bunsu...@googlegroups.com> .

For more options, visit this group at http://groups.google.com/group/sporkgem?hl=en.

Karl

unread,
Jan 12, 2010, 2:09:21 PM1/12/10
to sporkgem
I tried this out and it works. JUst wanted to let everyone know.

thx.

On Dec 15 2009, 12:36 pm, Karl Baum <karl.b...@gmail.com> wrote:
> Cool.. I will give it a try and let you know.
>
> Thx.
>

> On 12/15/09 9:53 AM, "Tim Harper" <timchar...@gmail.com> wrote:
>
> > Hi carl!
>
> > Yes, this should be possible (I designed it with that in mind... but I d9nt
> > have any tests to prove its working... I should add one).
>

Tim Harper

unread,
Jan 12, 2010, 2:27:27 PM1/12/10
to spor...@googlegroups.com
On Tue, Jan 12, 2010 at 12:09 PM, Karl <karl...@gmail.com> wrote:
> I tried this out and it works.  JUst wanted to let everyone know.
>
> thx.
>
Great news! Thank you for sharing.
Reply all
Reply to author
Forward
0 new messages