forked from minitest/minitest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Added minitest/manual_plugins.rb w/ new Minitest.load method. (tend…
…erlove) eg: require "minitest/autorun" require "minitest/manual_plugins" Minitest.load :pride, :gcstats runs about 5% faster on my machine (~100 gems) [git-p4: depot-paths = "//src/minitest/dev/": change = 14137]
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require "minitest" | ||
|
||
ARGV << "--no-plugins" | ||
|
||
module Minitest | ||
## | ||
# Manually load plugins by name. | ||
|
||
def self.load *names | ||
names.each do |name| | ||
require "minitest/#{name}_plugin" | ||
|
||
self.extensions << name.to_s | ||
end | ||
end | ||
end |