sporkrb / spork

A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.
spork.rubyforge.org
MIT License
1.4k stars 188 forks source link

Spork doesn't support custom features/ directory #229

Open rafmagana opened 11 years ago

rafmagana commented 11 years ago

I'm trying to make it work with guard-cucumber which supports the :feature_sets option:

:feature_sets => ['my_custom_features_directory']

But Spork always uses 'features/' directory:

https://github.com/sporkrb/spork/blob/master/lib/spork/test_framework/cucumber.rb#L3

So it tries to find the support/env.rb file in the 'features/' directory. It'd be good to have an option like that in Spork, so that I can do something like this:

guard :spork, :cucumber_features_directory => 'my_custom_features_directory'

Any other idea?