Actions
Defect #43609
openTests fail with minitest 6.0
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
Currently, Redmine tests fail with minitest 6.0.
https://github.com/hidakatsuya/redmine/actions/runs/20320758204/job/58375705270
/home/runner/work/redmine/redmine/vendor/bundle/ruby/3.4.0/gems/railties-8.0.4/lib/rails/test_unit/line_filtering.rb:7:in 'run': wrong number of arguments (given 3, expected 1..2) (ArgumentError)
from /home/runner/work/redmine/redmine/vendor/bundle/ruby/3.4.0/gems/minitest-6.0.0/lib/minitest.rb:467:in 'block (2 levels) in Minitest::Runnable.run_suite'
from /home/runner/work/redmine/redmine/vendor/bundle/ruby/3.4.0/gems/minitest-6.0.0/lib/minitest.rb:463:in 'Array#each'
minitest 6.0 was released on December 17, 2025 (UTC). Rails already includes a fix for minitest 6.0:
https://github.com/rails/rails/pull/56202
However, no released Rails version includes this fix yet. As a result, Redmine and its plugins cannot run tests successfully with minitest 6.0.
For now, it would be better to lock the minitest version to 5.x until a Rails release includes the fix.
diff --git a/Gemfile b/Gemfile
index abd53964d..3c9fc7815 100644
--- a/Gemfile
+++ b/Gemfile
@@ -123,6 +123,8 @@ group :test do
gem 'bundle-audit', require: false
# for testing oauth provider capabilities
gem 'oauth2'
+ # Lock minitest to 5.x until a Rails release includes support for minitest 6.0
+ gem 'minitest', '~> 5.27'
end
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
I confirmed that all tests passed with this fix.
Updated by Go MAEDA about 8 hours ago
- Status changed from New to Confirmed
- Target version set to 5.1.11
Updated by Go MAEDA about 6 hours ago
- Status changed from Confirmed to Resolved
- Assignee set to Go MAEDA
Committed the workaround in r24213. Thank you.
Actions