Sha256: 1e4231efd27c9898863729610227ce4d227537943709f92a73cdb834852d16ba

Contents?: true

Size: 1.24 KB

Versions: 4

Compression:

Stored size: 1.24 KB

Contents

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

namespace 'test' do
  UNIT_TESTS = FileList['spec/reek/**/*_spec.rb']
  QUALITY_TESTS = FileList['spec/quality/**/*_spec.rb']

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

  Spec::Rake::SpecTask.new('quality') do |t|
    t.spec_files = QUALITY_TESTS
    t.spec_opts = ['--color']
    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 = UNIT_TESTS + QUALITY_TESTS
    t.rcov = true
    t.rcov_dir = 'build/coverage'
  end

  desc 'Checks all supported versions of Ruby'
  task :multiruby do
    sh "multiruby -S rake spec"
  end

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

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

task 'clobber_rcov' => 'test:clobber_rcov'

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 & 2 rubygems

Version Path
kevinrutherford-reek-1.1.3.16 tasks/test.rake
kevinrutherford-reek-1.2.0 tasks/test.rake
reek-1.2.1 tasks/test.rake
reek-1.2.0 tasks/test.rake