lib/minitest/test_task.rb in minitest-5.22.3 vs lib/minitest/test_task.rb in minitest-5.24.0
- old
+ new
@@ -1,9 +1,15 @@
require "shellwords"
require "rbconfig"
-require "rake/tasklib"
+begin
+ require "rake/tasklib"
+rescue LoadError => e
+ warn e.message
+ return
+end
+
module Minitest # :nodoc:
##
# Minitest::TestTask is a rake helper that generates several rake
# tasks under the main test task's name-space.
@@ -112,10 +118,10 @@
self.libs = %w[lib test .]
self.name = name
self.test_globs = ["test/**/test_*.rb",
"test/**/*_test.rb"]
self.test_prelude = nil
- self.verbose = Rake.application.options.trace
+ self.verbose = Rake.application.options.trace || Rake.verbose == true
self.warning = true
end
##
# Extract variables from the environment and convert them to