Skip to content

Commit 4795997

Browse files
committed
- Minitest::TestTask enthusiastically added itself to default. (ParadoxV5)
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]
1 parent a2c6c18 commit 4795997

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/minitest/test_task.rb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ module Minitest # :nodoc:
2929
# end
3030
#
3131
# Customize the name and only run unit tests.
32+
#
33+
# NOTE: To hook this task up to the default, make it a dependency:
34+
#
35+
# task default: :unit
3236

3337
class TestTask < Rake::TaskLib
3438
WINDOWS = RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ # :nodoc:
@@ -157,8 +161,6 @@ def process_env
157161
end
158162

159163
def define # :nodoc:
160-
default_tasks = []
161-
162164
desc "Run the test suite. Use N, X, A, and TESTOPTS to add flags/args."
163165
task name do
164166
ruby make_test_cmd, verbose:verbose
@@ -243,11 +245,6 @@ def define # :nodoc:
243245
"sort -n -k2 -t=",
244246
"tail -25"].join " | "
245247
end
246-
247-
default_tasks << name
248-
249-
desc "Run the default task(s)."
250-
task :default => default_tasks
251248
end
252249

253250
##

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy