Sha256: 297491903be7ef73cd9824a06f9ad741c07c24ddc236f54917130bb0319e9389

Contents?: true

Size: 680 Bytes

Versions: 17

Compression:

Stored size: 680 Bytes

Contents

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

namespace 'test' do
  RSpec::Core::RakeTask.new('spec') do |t|
    t.pattern = 'spec/reek/**/*_spec.rb'
    t.ruby_opts = ['-Ilib -w']
  end

  desc 'Tests code quality'
  RSpec::Core::RakeTask.new('quality') do |t|
    t.pattern = 'spec/quality/**/*_spec.rb'
    t.ruby_opts = ['-Ilib']
  end

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

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

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
reek-3.10.1 tasks/test.rake
reek-3.10.0 tasks/test.rake
reek-3.9.1 tasks/test.rake
reek-3.9.0 tasks/test.rake
reek-3.8.3 tasks/test.rake
reek-3.8.2 tasks/test.rake
reek-3.8.1 tasks/test.rake
reek-3.8.0 tasks/test.rake
reek-3.7.1 tasks/test.rake
reek-3.7.0 tasks/test.rake
reek-3.6.1 tasks/test.rake
reek-3.6.0 tasks/test.rake
reek-3.5.0 tasks/test.rake
reek-3.4.1 tasks/test.rake
reek-3.4.0 tasks/test.rake
reek-3.3.1 tasks/test.rake
reek-3.3.0 tasks/test.rake