Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jan 21, 2026

Updates the requirements on minitest to permit the latest version.
Updates minitest to 6.0.1

Changelog

Sourced from minitest's changelog.

=== 6.0.1 / 2025-12-26

  • 1 minor enhancement:

    • Added new rake task test:fu to Minitest::TestTask, to only run tests with FU (focused units?) in their name. This should mostly obviate the need for the minitest-focus plugin.
  • 5 bug fixes:

    • Fixed --help and --version exiting 1. (grosser)
    • Fixed method signature of Minitest::Benchmark.run. (flavorjones)
    • Flush stdout/stderr before exit./bin/minitest -Ilib ./bug1046.rb:1 < /dev/null (grosser)
    • Improved usage banner output by reordering and reformatting.
    • Normalize paths while processing file.rb:line args.

=== 6.0.0 / 2025-12-17

This is a major release. Read this.

Please give feedback here: minitest/minitest#1040

Oh god... here we go... (again)

  • 8 deaths in the family(!!):

    • Deleted MiniTest and MiniTest::Unit::TestCase compatibility namespaces.
    • Deleted all use of Marshal for serialization.
    • Deleted maglev? and rubinius? guard methods. LOL.
    • Deleted all minitest/spec expectations from Object. Use _/value/expect.
    • Dropped minitest/mock.rb. This has been extracted to the minitest-mock gem.
    • assert_equal(nil, value) no longer allowed. Use assert_nil to be explicit.
    • Removed assert_send. Use assert_predicate or assert_operator.
    • Removed Minitest::Test#class_name.
  • 7 major (oft incompatible) changes:

    • Big: Major refactored MT6's run path!
      • Minitest.__run -> Minitest.run_all_suites
      • Runnable.run -> Runnable.run_suite & Runnable.filter_runnable_methods
      • Runnable.run_one_method -> Runnable.run
      • Removed Minitest.run_one_method (might bring it back to raise?)
    • Removed deprecated ENV["N"] to specify number of parallel tests. Use MT_CPU.
    • Renamed +options[:filter]+ to +options[:include]+, added --include cmdline option.
      • --name is still handled, but that will be removed in the future.
    • Renamed Minitest::Runnable#test_order to #run_order.
    • If #message is passed a proc then that proc overrides all other output.
      • They are no longer chained!
      • And it does less for formatting of your output.
    • Removed reporter arg from with_info_handler as it has never(?) been used. (HACK?)

... (truncated)

Commits
  • edd37ce prepped for release
  • 248c9e2 - Fixed method signature of Minitest::Benchmark.run. (flavorjones)
  • 18bbdb1 - Flush stdout/stderr before exit./bin/minitest -Ilib ./bug1046.rb:1 < /dev/n...
  • 50a1b1f - Normalize paths while processing file.rb:line args.
  • 372b997 - Fixed --help and --version exiting 1. (grosser)
  • c05a898 - Improved usage banner output by reordering and reformatting.
  • 692c2e7 + Added new rake task test:fu to Minitest::TestTask, to only run tests with...
  • 5bbab5c Fix format of History.rdoc. (y-yagi)
  • 2f3d88e prepped for release
  • 756f965 Add Hoe's :cov plugin and start to look at gaps
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

…2, ~> 6.0

Updates the requirements on [minitest](https://github.com/minitest/minitest) to permit the latest version.

Updates `minitest` to 6.0.1
- [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc)
- [Commits](minitest/minitest@v5.10.0...v6.0.1)

---
updated-dependencies:
- dependency-name: minitest
  dependency-version: 6.0.1
  dependency-type: direct:development
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Jan 21, 2026

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

- Change minitest constraint from '~> 6.0' to '>= 5.10', '< 7'
  This allows bundler to select minitest 5.x for Rails < 6.1
  (which require minitest ~> 5.1) and minitest 6.x for Rails >= 6.1
- Add minitest-mock gem dependency
  Required for minitest 6.0 which extracted minitest/mock to separate gem
- Remove Minitest 4 backward compatibility code
  The MiniTest:: namespace compatibility is no longer needed
  and was removed in minitest 6.0

This approach maintains compatibility with all supported Rails versions
(5.1, 5.2, 6.0, 6.1, 7.0, 7.1, 7.2, 8.0, 8.1) while allowing the project
to use the latest minitest 6.0 features when possible.

Tested with Rails 6.1.7.10 and 7.0.10 - all tests pass.
@takaokouji
Copy link
Collaborator

Changes Applied

I've updated this PR to make it compatible with all supported Rails versions. The original PR attempted to upgrade to minitest ~> 6.0, but this caused dependency conflicts with older Rails versions.

What was the problem?

Rails versions 5.1, 5.2, and 6.0 have activesupport gems that require minitest ~> 5.1, which explicitly excludes minitest 6.0. This caused all 60 CI jobs to fail with bundler dependency resolution errors.

How was it fixed?

  1. Changed minitest constraint to be permissive: '>= 5.10', '!= 5.10.2', '< 7'

    • This allows bundler to select minitest 5.x for Rails < 6.1 (which require ~> 5.1)
    • And minitest 6.x for Rails >= 6.1 (which require >= 5.1)
  2. Added minitest-mock gem dependency

    • Required for minitest 6.0, which extracted minitest/mock to a separate gem
    • The codebase uses Minitest::Mock in test files
  3. Removed Minitest 4 backward compatibility code

    • The MiniTest:: namespace compatibility is no longer needed
    • This namespace was removed in minitest 6.0 anyway

Testing

✅ Tested locally with Rails 6.1.7.10 + minitest 6.0.1: All 704 tests pass
✅ Tested locally with Rails 7.0.10 + minitest 6.0.1: All tests pass

This approach maintains compatibility with all supported Rails versions while allowing the project to use the latest minitest 6.0 features when possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant