Skip to content

Commit

Permalink
- Minitest::TestTask enthusiastically added itself to default. (Parad…
Browse files Browse the repository at this point in the history
…oxV5)

Not everyone wants every test task added to default. This is already handled by hoe's test integration.
[git-p4: depot-paths = "//src/minitest/dev/": change = 13854]
  • Loading branch information
zenspider committed Jul 17, 2023
1 parent a2c6c18 commit 4795997
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/minitest/test_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ module Minitest # :nodoc:
# 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

This comment has been minimized.

Copy link
@ParadoxV5

ParadoxV5 Jul 17, 2023

isn’t the default name test?

def self.create name = :test, &block


class TestTask < Rake::TaskLib
WINDOWS = RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ # :nodoc:
Expand Down Expand Up @@ -157,8 +161,6 @@ def process_env
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
Expand Down Expand Up @@ -243,11 +245,6 @@ def define # :nodoc:
"sort -n -k2 -t=",
"tail -25"].join " | "
end

default_tasks << name

desc "Run the default task(s)."
task :default => default_tasks
end

##
Expand Down

0 comments on commit 4795997

Please sign in to comment.