Sha256: a28ba8f8127f39dbca6e50f705f3f99aa342bc4796f5a0a00e86ed0071136206

Contents?: true

Size: 748 Bytes

Versions: 2

Compression:

Stored size: 748 Bytes

Contents

require 'bundler/setup'
require "bundler/gem_tasks"

require 'rake'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'

desc 'Default: run all tests'
task :default => [:spec, :cucumber]

namespace :cucumber do
  Cucumber::Rake::Task.new(:engine) do |t|
    t.fork = true
    t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress'), 'features/engine/*.feature']
  end

  Cucumber::Rake::Task.new(:integration) do |t|
    t.fork = true
    t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress'), 'features/integration/*.feature']
  end
end

task :cucumber => ["cucumber:engine", "cucumber:integration"]

RSpec::Core::RakeTask.new do |t|
  t.pattern = "spec/**/*_spec.rb"
  t.rspec_opts = "--format progress"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saucy-0.16.1 Rakefile
saucy-0.16.0 Rakefile