cucumber/cucumber — Issue #218: Tork integration: how to absorb overhead?
Author: sunaku
Created: 2012-01-26 06:00:38+00:00
State: open

Hello,

I'm trying to add support for Cucumber in [Tork](https://github.com/sunaku/tork#readme), a continuous testing tool. So far, [I've been able](https://github.com/sunaku/tork/blob/8d7c05df6708d209764ed35b84d0861e59a1e6c1/lib/tork/config/cucumber.rb#L16-21) to perform the equivalent of `exec cucumber some_feature_file:some_line:another_line:etc` while staying in the same Ruby process.

Now I want to take this further by absorbing Cucumber's feature execution overhead into my master process so that I can run feature steps more quickly, just by forking. However, I'm stuck: I can't create a `Cucumber::Runtime` instance in my prefork phase (to absorb `features/support/*.rb` overhead) because it requires knowledge of exactly which feature steps are going to be run (that knowledge comes *later* on during the postfork phase).

Any hints would be appreciated. Thanks for your consideration.