File tree 1 file changed +0
-22
lines changed
1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -21,25 +21,3 @@ task :validate do
21
21
sh "erb -P -x -T '-' #{ template } | ruby -c"
22
22
end
23
23
end
24
-
25
- require 'rspec/core/rake_task'
26
- desc 'test tiering'
27
- RSpec ::Core ::RakeTask . new ( :test_tier ) do |t |
28
- # Setup rspec opts
29
- t . rspec_opts = [ '--color' ]
30
-
31
- # TEST_TIERS env variable is a comma separated list of tiers to run. e.g. low, medium, high
32
- if ENV [ 'TEST_TIERS' ]
33
- test_tiers = ENV [ 'TEST_TIERS' ] . split ( ',' )
34
- raise 'TEST_TIERS env variable must have at least 1 tier specified. low, medium or high (comma separated).' if test_tiers . count == 0
35
- test_tiers . each do |tier |
36
- raise "#{ tier } not a valid test tier." unless %w( low medium high ) . include? ( tier )
37
- t . rspec_opts . push ( "--tag tier_#{ tier } " )
38
- end
39
- else
40
- puts 'TEST_TIERS env variable not defined. Defaulting to run all tests.'
41
- end
42
-
43
- # Implement an override for the pattern with BEAKER_PATTERN env variable.
44
- t . pattern = ENV [ 'BEAKER_PATTERN' ] ? ENV [ 'BEAKER_PATTERN' ] : 'spec/acceptance'
45
- end
You can’t perform that action at this time.
0 commit comments