summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorRyan Davis <ryand-ruby@zenspider.com>2015-06-10 15:19:16 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-06-11 19:05:53 -0700
commit22951c878bf676f8528a2906e98ce61a2e564069 (patch)
treeef4a9248693dbbd306cd9e7a77f4b043ece1c1de /Rakefile
parent76900a48ee73bcb14452e7797913907b5359e3bd (diff)
downloadrack-22951c878bf676f8528a2906e98ce61a2e564069.tar.gz
Converting to minitest: phase 1: minitest/bacon
This is a VERY quick conversion to minitest/bacon. It does nothing but include minitest/bacon and get the tests passing again. Some things are different, namely, how minitest treats tests (instance methods run randomly) vs how bacon treats tests ("class" blocks run serially). Instance variable access is different between the two, so some things got wrapped in before/after blocks WITHOUT indenting properly. That'll come later.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index a11c2f7e..7afb595b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -82,11 +82,12 @@ end
desc "Run all the fast + platform agnostic tests"
task :test => 'SPEC' do
- opts = ENV['TEST'] || '-a'
- specopts = ENV['TESTOPTS'] ||
- "-q -t '^(?!Rack::Adapter|Rack::Session::Memcache|Rack::Server|Rack::Handler)'"
+ opts = ENV['TEST'] || ''
+ specopts = ENV['TESTOPTS']
+ # ||
+ # "-n '^(?!Rack::Adapter|Rack::Session::Memcache|Rack::Server|Rack::Handler)'"
- sh "bacon -w -I./lib:./test #{opts} #{specopts}"
+ sh "ruby -rminitest/bacon -I./lib:./test -S minitest #{opts} #{specopts} test/spec*.rb"
end
desc "Run all the tests we run on CI"