Sha256: 6bf01f4c54fe855d39339ceb9b5d93239cbc875da3e7e310708c5939dabac319

Contents?: true

Size: 932 Bytes

Versions: 4

Compression:

Stored size: 932 Bytes

Contents

require 'rspec/core'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new('spec:focus') do |task|
  task.rspec_opts = '--tag @focus'
end

RSpec::Core::RakeTask.new('spec:quick') do |task|
  task.rspec_opts = '--tag ~@no_db_clean --tag ~@migration --format progress'
end

RSpec::Core::RakeTask.new('regression') do |task|
  task.pattern = 'regression/**{,/*/**}/*_spec.rb'
  task.rspec_opts = '--require regression/regression_helper.rb'
end

RSpec::Core::RakeTask.new('spec:slow') do |task|
  task.rspec_opts = '--tag @no_db_clean --tag @migration  --format progress'
end

task :set_simplecov_command_to_spec_quick do
  ENV['SIMPLECOV_COMMAND_NAME'] = 'spec:quick'
end

task :set_simplecov_command_to_spec_slow do
  ENV['SIMPLECOV_COMMAND_NAME'] = 'spec:slow'
end

task 'spec:quick' => ['set_simplecov_command_to_spec_quick']
task 'spec:slow' => ['set_simplecov_command_to_spec_slow']
task :spec => ['spec:quick', 'spec:slow']

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pact_broker-2.76.2 tasks/rspec.rake
pact_broker-2.76.1 tasks/rspec.rake
pact_broker-2.76.0 tasks/rspec.rake
pact_broker-2.75.0 tasks/rspec.rake