From: Andy Allan Date: Wed, 7 Feb 2024 17:54:34 +0000 (+0000) Subject: Add minitest-focus gem X-Git-Tag: live~790^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/bd1f568c0a91d8d58b05912fdae1a6912edd3e62 Add minitest-focus gem --- diff --git a/Gemfile b/Gemfile index 8dd0576d1..63d9c49e8 100644 --- a/Gemfile +++ b/Gemfile @@ -154,6 +154,7 @@ group :test do gem "factory_bot_rails" gem "jwt" gem "minitest", "~> 5.1" + gem "minitest-focus", :require => false gem "puma", "~> 5.6" gem "rails-controller-testing" gem "rubocop" diff --git a/Gemfile.lock b/Gemfile.lock index 7e297ae33..32ac9e418 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -334,6 +334,8 @@ GEM mini_racer (0.8.0) libv8-node (~> 18.16.0.0) minitest (5.22.0) + minitest-focus (1.4.0) + minitest (>= 4, < 6) msgpack (1.7.2) multi_json (1.15.0) multi_xml (0.6.0) @@ -642,6 +644,7 @@ DEPENDENCIES marcel maxminddb minitest (~> 5.1) + minitest-focus oauth-plugin (>= 0.5.1) omniauth (~> 2.0.2) omniauth-facebook diff --git a/test/test_helper.rb b/test/test_helper.rb index 5fe1ada47..e1bc91917 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -32,6 +32,7 @@ ENV["RAILS_ENV"] = "test" require_relative "../config/environment" require "rails/test_help" require "webmock/minitest" +require "minitest/focus" unless ENV["CI"] WebMock.disable_net_connect!(:allow_localhost => true)