Skip to content

(Maintenance) remove redundant rake task #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,3 @@ task :validate do
sh "erb -P -x -T '-' #{template} | ruby -c"
end
end

require 'rspec/core/rake_task'
desc 'test tiering'
RSpec::Core::RakeTask.new(:test_tier) do |t|
# Setup rspec opts
t.rspec_opts = ['--color']

# TEST_TIERS env variable is a comma separated list of tiers to run. e.g. low, medium, high
if ENV['TEST_TIERS']
test_tiers = ENV['TEST_TIERS'].split(',')
raise 'TEST_TIERS env variable must have at least 1 tier specified. low, medium or high (comma separated).' if test_tiers.count == 0
test_tiers.each do |tier|
raise "#{tier} not a valid test tier." unless %w(low medium high).include?(tier)
t.rspec_opts.push("--tag tier_#{tier}")
end
else
puts 'TEST_TIERS env variable not defined. Defaulting to run all tests.'
end

# Implement an override for the pattern with BEAKER_PATTERN env variable.
t.pattern = ENV['BEAKER_PATTERN'] ? ENV['BEAKER_PATTERN'] : 'spec/acceptance'
end