Skip to content

Instantly share code, notes, and snippets.

@zenspider
Last active May 3, 2024 19:34
Show Gist options
  • Save zenspider/4afa25067b7a6b3f4af9a827f6456675 to your computer and use it in GitHub Desktop.
Save zenspider/4afa25067b7a6b3f4af9a827f6456675 to your computer and use it in GitHub Desktop.
minitest/manual_plugins
#!/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