Last active
May 3, 2024 19:34
-
-
Save zenspider/4afa25067b7a6b3f4af9a827f6456675 to your computer and use it in GitHub Desktop.
minitest/manual_plugins
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
#!/usr/bin/env ruby -w | |
$:.unshift "lib" | |
$: << "../../minitest-gcstats/dev/lib" | |
############################################################ | |
## minitest/manual_plugins.rb | |
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 | |
############################################################ | |
require "minitest/autorun" | |
# require "minitest/manual_plugins" | |
Minitest.load :pride, :gcstats, :server | |
# still need to use -p / -g etc to activate | |
class BlahTest < Minitest::Test | |
def test_woot! | |
assert true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment