Skip to content

Commit

Permalink
Added doco for using Rake::TestTask. (schneems)
Browse files Browse the repository at this point in the history
This won't stay long. Minitest::TestTask is coming...
[git-p4: depot-paths = "//src/minitest/dev/": change = 12121]
  • Loading branch information
zenspider committed Jun 11, 2019
1 parent 414ddf0 commit ec524d9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,18 @@ provided via plugins. To see them, simply run with +--help+:
-p, --pride Pride. Show your testing pride!
-a, --autotest Connect to autotest server.

You can set up a rake task to run all your tests by adding this to your Rakefile:

require "rake/testtask"

Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/test_*.rb"]
end

task :default => :test

== Writing Extensions

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

0 comments on commit ec524d9

Please sign in to comment.