Created
June 5, 2009 14:26
-
-
Save leehambley/124305 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake gems:install | |
(in /Users/leehambley/Sites/mvor) | |
There was an error loading some gems, please run "rake gems" for more info | |
The error was `no such file to load -- cucumber/rake/task` | |
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require' | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in' | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require' | |
/Users/leehambley/Sites/mvor/lib/tasks/cucumber.rake:3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
require 'cucumber/rake/task' | |
tags = ['~@slow', '~@stable'] | |
namespace :cucumber do | |
Cucumber::Rake::Task.new(:webrat) do |t| | |
t.profile = "webrat" | |
end | |
task :webrat => 'db:test:prepare' | |
end | |
desc "shortcut for cucumber:webrat" | |
task :features => 'cucumber:webrat' | |
namespace :features do | |
Cucumber::Rake::Task.new(:quick, "Run quick Cucumber features -slow, -stable") do |t| | |
t.profile = "webrat" | |
t.cucumber_opts = '--tags ~@slow,~@stable' | |
end | |
task :features_rcov => 'db:test:prepare' | |
Cucumber::Rake::Task.new(:rcov, "Run Cucumber features with RCov") do |t| | |
t.profile = "webrat" | |
t.rcov = true | |
t.rcov_opts << '-o coverage' | |
t.rcov_opts << '--text-report' | |
t.rcov_opts << '--exclude features\/,spec\/' | |
t.rcov_opts << '--sort coverage' | |
end | |
task :features_rcov => 'db:test:prepare' | |
namespace :rcov do | |
Cucumber::Rake::Task.new(:redundant, "Search for unused step definitions using RCov") do |t| | |
t.profile = "webrat" | |
t.rcov = true | |
t.rcov_opts << '-o coverage' | |
t.rcov_opts << '--text-report' | |
t.rcov_opts << '--exclude spec\/' | |
t.rcov_opts << '--sort coverage' | |
end | |
task :redundant => 'db:test:prepare' | |
end | |
end | |
rescue LoadError | |
load_error | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ → ack 'cucumber/rake/task' . | |
lib/tasks/cucumber.rake | |
3: require 'cucumber/rake/task' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment