Class: Cucumber::Rake::FeatureTask
- Defined in:
- lib/cucumber/rake/task.rb
Constant Summary
Constants inherited from Task
Instance Attribute Summary
Attributes inherited from Task
#binary, #cucumber_opts, #fork, #libs, #profile, #rcov, #rcov_opts
Instance Method Summary collapse
-
#define_task ⇒ Object
:nodoc:.
-
#feature_files(task_arguments) ⇒ Object
:nodoc:.
-
#initialize(task_name = "feature", desc = "Run a specified feature with Cucumber. #{task_name}[feature_name]") ⇒ FeatureTask
constructor
A new instance of FeatureTask.
Methods inherited from Task
#cucumber_opts_with_profile, deprecate_accessor, #runner, #step_files
Constructor Details
#initialize(task_name = "feature", desc = "Run a specified feature with Cucumber. #{task_name}[feature_name]") ⇒ FeatureTask
Returns a new instance of FeatureTask.
221 222 223 |
# File 'lib/cucumber/rake/task.rb', line 221 def initialize(task_name = "feature", desc = "Run a specified feature with Cucumber. #{task_name}[feature_name]") super(task_name, desc) end |
Instance Method Details
#define_task ⇒ Object
:nodoc:
225 226 227 228 229 230 |
# File 'lib/cucumber/rake/task.rb', line 225 def define_task # :nodoc: desc @desc task @task_name, :feature_name do |t, args| runner(args).run end end |
#feature_files(task_arguments) ⇒ Object
:nodoc:
232 233 234 |
# File 'lib/cucumber/rake/task.rb', line 232 def feature_files(task_arguments) # :nodoc: FileList[File.join("features", "**", "#{task_arguments[:feature_name]}.feature")] end |