From d3232d2c3f9e3a1ae8c021a1805c552b29c46822 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Tue, 21 Nov 2023 18:35:52 -0800 Subject: [PATCH] Simplify test dependencies (#413) - Remove `minitest-ci` since it is not used by GitHub Actions - Remove `minitest-reporters` in favor of `minitest-rg`, which is simpler, is officially maintained by the minitest GitHub organization, and doesn't patch minitest internals in ways that can break other plugins - Remove now unneeded `test/support` directory --- Gemfile | 3 +-- test/support/ci.rb | 2 -- test/support/reporters.rb | 7 ------- test/test_helper.rb | 2 +- 4 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 test/support/ci.rb delete mode 100644 test/support/reporters.rb diff --git a/Gemfile b/Gemfile index 9b69b1b0..70de1b69 100644 --- a/Gemfile +++ b/Gemfile @@ -3,8 +3,7 @@ gemspec gem "concurrent-ruby", "~> 1.1" gem "minitest", "~> 5.11" -gem "minitest-ci", "~> 3.4" -gem "minitest-reporters", "~> 1.3" +gem "minitest-rg" gem "rake", "~> 13.0" gem "rubocop", "1.57.2" gem "rubocop-md", "1.2.1" diff --git a/test/support/ci.rb b/test/support/ci.rb deleted file mode 100644 index 30f088fc..00000000 --- a/test/support/ci.rb +++ /dev/null @@ -1,2 +0,0 @@ -# Generate XML test reports that can be parsed by CI -require "minitest/ci" if ENV["CI"] diff --git a/test/support/reporters.rb b/test/support/reporters.rb deleted file mode 100644 index 186482c2..00000000 --- a/test/support/reporters.rb +++ /dev/null @@ -1,7 +0,0 @@ -require "minitest/reporters" - -if ENV["CI"] - Minitest::Reporters.use!(Minitest::Reporters::SpecReporter.new) -else - Minitest::Reporters.use!(Minitest::Reporters::DefaultReporter.new) -end diff --git a/test/test_helper.rb b/test/test_helper.rb index 025b671b..96fc46c4 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,4 +2,4 @@ require "tomo/testing" require "minitest/autorun" -Dir[File.expand_path("support/**/*.rb", __dir__)].each { |rb| require(rb) } +require "minitest/rg"