Added cucumber task and ci task

Now you can `rake cucumber` to run the cukes, and
`rake ci` to run the rspec tests and then the cukes.
This commit is contained in:
Steve Klabnik 2012-10-19 09:12:38 -03:00
parent d40af21dba
commit 28ea364a2f
1 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,7 @@
require 'bundler/gem_tasks'
require 'rake'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
RCOV = RUBY_VERSION.to_f == 1.8
@ -41,7 +42,19 @@ namespace :spec do
end
namespace :cucumber do
Cucumber::Rake::Task.new(:ci) do |t|
t.cucumber_opts = %w{--format progress}
end
end
desc "Run Cucumber features"
task "cucumber" => "cucumber:ci"
desc "RSpec tests"
task "spec" => "spec:normal"
task "default" => "spec"
desc "Run all tests for CI"
task "ci" => ["spec:normal", "cucumber:ci"]
task "default" => "ci"