#39 new
Brandon Faloona

remove cucumber options step_pattern and feature_pattern from /lib/taza/tasks.rb

Reported by Brandon Faloona | July 24th, 2009 @ 04:05 PM

see: http://groups.google.com/group/cukes/browse_thread/thread/e9b67ee65...#

step_pattern and feature_pattern are deprecated and should be removed from:

# \lib\ruby\gems\1.8\gems\bret-watircraft-0.5.0\lib\taza\tasks.rb:26


Cucumber::Rake::Task.new do |t| t.cucumber_opts = '--format pretty' t.step_pattern = "lib/steps//*.rb" t.feature_pattern = "test/features//*.feature" end

WARNING: Cucumber::Rake::Task#step_pattern is deprecated and will be
removed in 0.4.0. Please use profiles for complex settings:
http://wiki.github.com/aslakhellesoy/cucumber/using-rake#profiles

Comments and changes to this ticket

  • Bret Pettichord

    Bret Pettichord July 24th, 2009 @ 05:32 PM

    Do you have a suggestion on what we should do? Should we use profiles?

    Bret

  • Brandon Faloona

    Brandon Faloona July 26th, 2009 @ 04:26 AM

    I commented out line 28 and 29 above in my gem sources folder and tested the following with cucumber 0.3.90. It may serve as a good default for watircraft (aside from the task name):

    # cucumber.yml
    default: --no-diff --format progress --format html --out results.htm test\features

    rakefile

    
    
    
    Cucumber::Rake::Task.new(:default, 'run all cucumber features') do |t| t.profile = "default" end
  • Brandon Faloona

    Brandon Faloona August 2nd, 2009 @ 04:43 PM

    • Tag set to rake

    Adding profile support would be a nice feature, but for now let's just remove the deprecated options.

    Partially as an exercise in learning github, i've commited a fix for this in my fork of watircraft.
    http://github.com/bfaloona/watircraft/commit/cbdc90ce03ee0be0db9a9f...

    I tested this change with feature and step definition files in subdirectories using "rake features".
    I also verified that cucumber profiles can be used in conjunction with this change, but the following option might need to be included in any referenced cucumber profile:

    --require lib/steps
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A framework for web testing.

Shared Ticket Bins

People watching this ticket

Tags

Pages