Sha256: 596147a5b06159a16669c427b7a946f59e2eb23c17118c8c66b1f12ebfcdfaac

Contents?: true

Size: 692 Bytes

Versions: 13

Compression:

Stored size: 692 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 = ['-rsimplecov -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

13 entries across 13 versions & 1 rubygems

Version Path
reek-4.2.1 tasks/test.rake
reek-4.2.0 tasks/test.rake
reek-4.1.1 tasks/test.rake
reek-4.1.0 tasks/test.rake
reek-4.0.5 tasks/test.rake
reek-4.0.4 tasks/test.rake
reek-4.0.3 tasks/test.rake
reek-4.0.2 tasks/test.rake
reek-4.0.1 tasks/test.rake
reek-4.0.0 tasks/test.rake
reek-4.0.0.pre1 tasks/test.rake
reek-3.11 tasks/test.rake
reek-3.10.2 tasks/test.rake