isolate unit tests as rake default

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-15 15:52:07 +02:00
parent 72e3fbcb2a
commit de2b4b1b01

View file

@ -18,7 +18,7 @@ task lint: [:rubocop]
task default: :test
Rake::TestTask.new do |t|
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.pattern = 'test/unit/*_test.rb'
t.warning = true
t.verbose = true
t.ruby_opts = ['--dev'] if defined?(JRUBY_VERSION)
@ -26,7 +26,7 @@ end
namespace :test do
task :isolated do
Dir.glob('test/**/*_test.rb').all? do |file|
Dir.glob('test/unit/*_test.rb').all? do |file|
sh(Gem.ruby, '-w', '-Ilib:test', file)
end or fail 'Failures'
end