diff options
author | Ryan Davis <ryand-ruby@zenspider.com> | 2015-06-10 15:19:16 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-06-11 19:05:53 -0700 |
commit | 22951c878bf676f8528a2906e98ce61a2e564069 (patch) | |
tree | ef4a9248693dbbd306cd9e7a77f4b043ece1c1de /Rakefile | |
parent | 76900a48ee73bcb14452e7797913907b5359e3bd (diff) | |
download | rack-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-- | Rakefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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" |