From 6bf5dd29e9cd85b5c22a4e49c9841e00a190a9eb Mon Sep 17 00:00:00 2001 From: nick evans Date: Thu, 30 Jul 2026 12:22:52 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Update=20bin/test=20test=20runner?= =?UTF-8?q?=20and=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This moves the test runner script into the `bin` dir, and gets rid of that weird `"Done"` line that was printed to the console when running `test/run` with no args. --- README.md | 4 +++- test/run => bin/test | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) rename test/run => bin/test (55%) diff --git a/README.md b/README.md index 6122e13fb..a1b13449a 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,9 @@ end ## Development -After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. +After checking out the repo, run `bin/setup` to install dependencies. Then, run +`bin/test` to run the tests. You can also run `bin/console` for an interactive +prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). diff --git a/test/run b/bin/test similarity index 55% rename from test/run rename to bin/test index 50cefb182..61fff3da7 100755 --- a/test/run +++ b/bin/test @@ -6,6 +6,8 @@ base_dir = File.expand_path("..", __dir__) $LOAD_PATH.unshift File.expand_path("test/lib", base_dir) $LOAD_PATH.unshift File.expand_path("lib", base_dir) -require_relative "lib/helper" +require_relative "../test/lib/helper" -exit Test::Unit::AutoRunner.run(true) +exit(Test::Unit::AutoRunner.run(true) do |runner| + runner.default_test_paths << File.expand_path("test/net/imap", base_dir) +end)