Skip to content

Commit ec524d9

Browse files
committed
Added doco for using Rake::TestTask. (schneems)
This won't stay long. Minitest::TestTask is coming... [git-p4: depot-paths = "//src/minitest/dev/": change = 12121]
1 parent 414ddf0 commit ec524d9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.rdoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,18 @@ provided via plugins. To see them, simply run with +--help+:
294294
-p, --pride Pride. Show your testing pride!
295295
-a, --autotest Connect to autotest server.
296296

297+
You can set up a rake task to run all your tests by adding this to your Rakefile:
298+
299+
require "rake/testtask"
300+
301+
Rake::TestTask.new(:test) do |t|
302+
t.libs << "test"
303+
t.libs << "lib"
304+
t.test_files = FileList["test/**/test_*.rb"]
305+
end
306+
307+
task :default => :test
308+
297309
== Writing Extensions
298310

299311
To define a plugin, add a file named minitest/XXX_plugin.rb to your

0 commit comments

Comments
 (0)