From fb027b5601144fe4780e76aeede5658f580b4a53 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Mon, 25 May 2026 11:30:49 -0400 Subject: [PATCH] Revert `bin/test` changes The original bin/test script got replaced in https://github.com/Shopify/spoom/pull/850 to use the Minitest 6 runner. It works however, the ergonomics of the previous script were better as you could easily provide a subset of the tests to run using globs: `bin/test test/spoom/sorbet/**/*.rb`. Signed-off-by: Alexandre Terrasa --- bin/test | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/bin/test b/bin/test index 8fef6665..e49467c5 100755 --- a/bin/test +++ b/bin/test @@ -1,16 +1,8 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# -# This file was generated by Bundler. -# -# The application 'minitest' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) - -require "rubygems" -require "bundler/setup" - -load Gem.bin_path("minitest", "minitest") +#!/usr/bin/env bash +if [[ 2 -eq $# ]]; then + bundle exec rake TEST="$1" TESTOPTS="-n='/$2/'" +elif [[ 1 -eq $# ]]; then + bundle exec rake TEST="$1" +else + bundle exec rake "$@" +fi