[rspec-users] Using cucumber profiles with rake task

Forrest Chang fkchang2000 at yahoo.com
Fri Feb 20 16:41:27 EST 2009





----- Original Message ----
> Message: 4
> Date: Tue, 10 Feb 2009 10:43:35 -0500
> From: Zach Dennis 

> The Cucumber rake task doesn't support profiles very well. There is a
> ticket for this:
> 
> http://rspec.lighthouseapp.com/projects/16211/tickets/187-rake-task-support-cucumberyml-profiles
> 
> On the ticket Ben Mabey provided his current solution, which is to
> clear out the feature list:
> 
> Cucumber::Rake::Task.new(:selenium) do |t|
>    ENV['WEBRAT'] = 'selenium'
>    t.cucumber_opts = "--profile selenium"
>    t.feature_list = []
> end
>

I just did this sort of thing, you also need to set t.step_list = [], else the rake task will expand all steps in the features directories as well.

Forrest



More information about the rspec-users mailing list