Module: Hoe::Cucumberfeatures

Defined in:
lib/hoe/cucumberfeatures.rb

Overview

Cucumber plugin for hoe.

Tasks Provided:

features

Run cucumber feature

Instance Method Summary collapse

Instance Method Details

#define_cucumberfeatures_tasksObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/hoe/cucumberfeatures.rb', line 10

def define_cucumberfeatures_tasks
  begin
    gem 'cucumber'
    require 'cucumber/rake/task'

    Cucumber::Rake::Task.new(:features) do |t|
      t.cucumber_opts = "--format progress"
    end
  rescue LoadError => e
    p e
  end
end