lib/minitest/test_task.rb in minitest-5.18.1 vs lib/minitest/test_task.rb in minitest-5.19.0

- old
+ new

@@ -27,10 +27,14 @@ # t.test_globs = ["test/unit/**/*_test.rb"] # t.warning = false # end # # Customize the name and only run unit tests. + # + # NOTE: To hook this task up to the default, make it a dependency: + # + # task default: :unit class TestTask < Rake::TaskLib WINDOWS = RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ # :nodoc: ## @@ -155,12 +159,10 @@ extra_args.compact! end def define # :nodoc: - default_tasks = [] - desc "Run the test suite. Use N, X, A, and TESTOPTS to add flags/args." task name do ruby make_test_cmd, verbose:verbose end @@ -241,14 +243,9 @@ sh ["rake #{name} A=-v", "egrep '#test_.* s = .'", "sort -n -k2 -t=", "tail -25"].join " | " end - - default_tasks << name - - desc "Run the default task(s)." - task :default => default_tasks end ## # Generate the test command-line.