Class: RedminePluginSupport::CucumberTask
- Inherits:
-
GeneralTask
- Object
- Rake::TaskLib
- GeneralTask
- RedminePluginSupport::CucumberTask
- Defined in:
- lib/redmine_plugin_support/cucumber_task.rb
Instance Attribute Summary
Attributes inherited from GeneralTask
Instance Method Summary collapse
Methods inherited from GeneralTask
Constructor Details
This class inherits a constructor from RedminePluginSupport::GeneralTask
Instance Method Details
#define ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/redmine_plugin_support/cucumber_task.rb', line 3 def define require 'cucumber/rake/task' # TODO: Requires webrat to be installed as a plugin.... Cucumber::Rake::Task.new(:features) do |t| t.cucumber_opts = "--format pretty" end namespace :features do Cucumber::Rake::Task.new(:rcov) do |t| t.cucumber_opts = "--format pretty" t.rcov = true t.rcov_opts << ["--rails", "--sort=coverage", "--exclude '/var/lib/gems,spec,#{RedmineHelper.redmine_app},#{RedmineHelper.redmine_lib},step_definitions,features/support'"] end end end |