Sha256: 8361d78f322cbdb51b6e00d9d629a2ea769b0bd3bb47d30ed800bc0ebfc68a0a

Contents?: true

Size: 973 Bytes

Versions: 4

Compression:

Stored size: 973 Bytes

Contents

require 'rubygems'
require 'cucumber'
require 'cucumber/rake/task'
require 'spec'
require 'spec/rake/spectask'

namespace 'test' do
  FAST = FileList['spec/reek/**/*_spec.rb']
  SLOW = FileList['spec/slow/**/*_spec.rb']

  Spec::Rake::SpecTask.new('spec') do |t|
    t.spec_files = FAST
    t.ruby_opts = ['-Ilib']
    t.rcov = false
  end

  Spec::Rake::SpecTask.new('slow') do |t|
    t.spec_files = SLOW
    t.ruby_opts = ['-Ilib']
    t.rcov = false
  end

  desc 'Runs all unit tests under RCov'
  Spec::Rake::SpecTask.new('rcov') do |t|
    t.spec_files = FAST + SLOW
    t.rcov = true
    t.rcov_dir = 'build/coverage'
  end

  Cucumber::Rake::Task.new(:features) do |t|
    t.cucumber_opts = "features --format progress --no-color"
  end

  desc 'Runs all unit tests and acceptance tests'
  task 'all' => ['test:spec', 'test:slow', 'test:features']
end

desc 'synonym for test:spec'
task 'spec' => 'test:spec'

desc 'synonym for test:all'
task 'test' => 'test:all'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kevinrutherford-reek-1.1.3.6 tasks/test.rake
kevinrutherford-reek-1.1.3.7 tasks/test.rake
kevinrutherford-reek-1.1.3.8 tasks/test.rake
kevinrutherford-reek-1.1.3.9 tasks/test.rake