-
Notifications
You must be signed in to change notification settings - Fork 1
Bump minitest from 5.25.5 to 5.26.0 #809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem compare minitest 5.25.5 5.26.0Compared versions: ["5.25.5", "5.26.0"]
DIFFERENT date:
5.25.5: 2025-03-12 00:00:00 UTC
5.26.0: 1980-01-02 00:00:00 UTC
DIFFERENT rubygems_version:
5.25.5: 3.6.3
5.26.0: 3.7.2
DIFFERENT version:
5.25.5: 5.25.5
5.26.0: 5.26.0
DIFFERENT files:
5.25.5->5.26.0:
* Changed:
History.rdoc +21/-0
Rakefile +0/-1
lib/minitest.rb +13/-11
lib/minitest/assertions.rb +3/-8
lib/minitest/spec.rb +6/-4
lib/minitest/test.rb +1/-0
lib/minitest/test_task.rb +26/-4
test/minitest/test_minitest_assertions.rb +3/-3
test/minitest/test_minitest_spec.rb +8/-10
test/minitest/test_minitest_test.rb +1/-1
DIFFERENT extra_rdoc_files:
5.25.5->5.26.0:
* Changed:
History.rdoc +21/-0
DIFFERENT development dependencies:
5.25.5->5.26.0:
* Updated:
hoe from: ["~> 4.2"] to: ["~> 4.3"] |
gem compare --diff minitest 5.25.5 5.26.0Compared versions: ["5.25.5", "5.26.0"]
DIFFERENT files:
5.25.5->5.26.0:
* Changed:
History.rdoc
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/History.rdoc 2025-10-09 02:01:49.956342076 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/History.rdoc 2025-10-09 02:01:49.962342084 +0000
@@ -0,0 +1,21 @@
+=== 5.26.0 / 2025-10-07
+
+The Seattle.rb Nerd Party, Slightly Tipsy Edition!
+
+* 2 minor enhancements:
+
+ * Added extra documentation to Minitest::TestTask options.
+ * Make parallelize_me! a no-op when n_threads=1.
+
+* 9 bug fixes:
+
+ * Bypass parallel_executor entirely when n_threads=1.
+ * Don't require rubygems in Rakefile... it is 2025.
+ * Ensure that minitest exits non-zero on Interrupt. (tavianator)
+ * Fix Minitest.run sequence rdoc to include loop vars and read consistently.
+ * Fix call to parallel_executor.shutdown when it isn't defined.
+ * Removed some 1.8/1.9-based code from the assertions and expectations.
+ * Still fighting with rdoc? Yup. Still fighting with rdoc...
+ * Switched assert_equal's diff from Tempfile.open to Tempfile.create.
+ * Use Regexp.escape for BASE_RE in case pwd has special chars. (astra_1993)
+
Rakefile
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/Rakefile 2025-10-09 02:01:49.956342076 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/Rakefile 2025-10-09 02:01:49.963342085 +0000
@@ -3 +2,0 @@
-require "rubygems"
lib/minitest.rb
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/lib/minitest.rb 2025-10-09 02:01:49.957342077 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/lib/minitest.rb 2025-10-09 02:01:49.963342085 +0000
@@ -13 +13 @@
- VERSION = "5.25.5" # :nodoc:
+ VERSION = "5.26.0" # :nodoc:
@@ -39 +39 @@
- self.parallel_executor = Parallel::Executor.new n_threads
+ self.parallel_executor = Parallel::Executor.new n_threads if n_threads > 1
@@ -262 +262 @@
- # Runnable.runnables.each
+ # Runnable.runnables.each |runnable_klass|
@@ -264,4 +264,5 @@
- # self.runnable_methods.each
- # self.run_one_method(self, runnable_method, reporter)
- # Minitest.run_one_method(klass, runnable_method)
- # klass.new(runnable_method).run
+ # filtered_methods = runnable_methods.select {...}.reject {...}
+ # filtered_methods.each |runnable_method|
+ # runnable_klass.run_one_method(self, runnable_method, reporter)
+ # Minitest.run_one_method(runnable_klass, runnable_method)
+ # runnable_klass.new(runnable_method).run
@@ -288,0 +290 @@
+ finished = true
@@ -292 +294 @@
- self.parallel_executor.shutdown
+ self.parallel_executor.shutdown if parallel_executor.respond_to? :shutdown
@@ -299,2 +301,2 @@
- return empty_run! options if summary && summary.count == 0
- reporter.passed?
+ return empty_run! options if finished && summary && summary.count == 0
+ finished and reporter.passed?
@@ -1082 +1084 @@
- BASE_RE = %r%#{Dir.pwd}/% # :nodoc:
+ BASE_RE = %r%#{Regexp.escape Dir.pwd}/% # :nodoc:
lib/minitest/assertions.rb
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/lib/minitest/assertions.rb 2025-10-09 02:01:49.957342077 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/lib/minitest/assertions.rb 2025-10-09 02:01:49.963342085 +0000
@@ -65 +65 @@
- Tempfile.open "expect" do |a|
+ Tempfile.create "expect" do |a|
@@ -69 +69 @@
- Tempfile.open "butwas" do |b|
+ Tempfile.create "butwas" do |b|
@@ -503,3 +503 @@
- rescue ThreadError => e # wtf?!? 1.8 + threads == suck
- default += ", not :#{e.message[/uncaught throw \`(\w+?)\'/, 1]}"
- rescue ArgumentError => e # 1.9 exception
+ rescue ArgumentError => e # 1.9+ exception
@@ -508,3 +505,0 @@
- rescue NameError => e # 1.8 exception
- raise e unless e.name == sym
- default += ", not #{e.name.inspect}"
lib/minitest/spec.rb
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/lib/minitest/spec.rb 2025-10-09 02:01:49.959342080 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/lib/minitest/spec.rb 2025-10-09 02:01:49.965342088 +0000
@@ -41 +41,5 @@
-Minitest::Expectation = Struct.new :target, :ctx # :nodoc:
+# :stopdoc:
+module Minitest # fucking hell rdoc...
+ Expectation = Struct.new :target, :ctx
+end
+# :startdoc:
@@ -288,3 +292 @@
- def to_s # :nodoc:
- name # Can't alias due to 1.8.7, not sure why
- end
+ alias to_s name
lib/minitest/test.rb
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/lib/minitest/test.rb 2025-10-09 02:01:49.959342080 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/lib/minitest/test.rb 2025-10-09 02:01:49.965342088 +0000
@@ -60,0 +61 @@
+ return unless Minitest.parallel_executor
lib/minitest/test_task.rb
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/lib/minitest/test_task.rb 2025-10-09 02:01:49.959342080 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/lib/minitest/test_task.rb 2025-10-09 02:01:49.966342089 +0000
@@ -47,2 +47,10 @@
- # Create several test-oriented tasks under +name+. Takes an
- # optional block to customize variables.
+ # Create several test-oriented tasks under +name+ (default:
+ # "test"). Takes an optional block to customize variables.
+ # Examples:
+ #
+ # Minitest::TestTask.create # named "test", all defaults
+ #
+ # Minitest::TestTask.create do |t|
+ # t.warning = false # my tests are noisy
+ # t.framework = %(require_relative "./test/helper.rb")
+ # end
@@ -72 +80,5 @@
- # minitest/autorun...
+ # minitest/autorun.
+ #
+ # If you have a test helper file that requires minitest/autorun
+ # and anything else your project standardizes on, then you'll
+ # probably want to change this to:
@@ -74 +86,6 @@
- # Why do I have this as an option?
+ # Minitest::TestTask.create do |t|
+ # t.framework = %(require_relative "./test/helper.rb")
+ # end
+ #
+ # or something similar. NOTE: if you do this, then helper must
+ # require "minitest/autorun" at the top to start the tests.
@@ -102,0 +120,5 @@
+ # Example:
+ #
+ # Minitest::TestTask.create "test:cov" do |t|
+ # t.test_prelude = %(require "simplecov")
+ # end
test/minitest/test_minitest_assertions.rb
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/test/minitest/test_minitest_assertions.rb 2025-10-09 02:01:49.960342081 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/test/minitest/test_minitest_assertions.rb 2025-10-09 02:01:49.966342089 +0000
@@ -321 +321 @@
- msg = <<~EOM
+ msg = <<~'EOM' # NOTE: single quotes on heredoc
@@ -325 +325 @@
- -"A\\n
+ -"A\n
@@ -327 +327 @@
- +"A\\n\\\\nB"
+ +"A\n\\nB"
test/minitest/test_minitest_spec.rb
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/test/minitest/test_minitest_spec.rb 2025-10-09 02:01:49.961342083 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/test/minitest/test_minitest_spec.rb 2025-10-09 02:01:49.967342091 +0000
@@ -713,2 +712,0 @@
- i_suck_and_my_tests_are_order_dependent!
-
@@ -725 +723 @@
- _(_count).must_equal 0
+ exp = _count + 1
@@ -727,2 +725,2 @@
- _(count).must_equal 1
- _(count).must_equal 1
+ _(count).must_equal exp
+ _(count).must_equal exp
@@ -730 +728 @@
- _(_count).must_equal 1
+ _(_count).must_equal exp
@@ -734 +732 @@
- _(_count).must_equal 1
+ exp = _count + 1
@@ -736,2 +734,2 @@
- _(count).must_equal 2
- _(count).must_equal 2
+ _(count).must_equal exp
+ _(count).must_equal exp
@@ -739 +737 @@
- _(_count).must_equal 2
+ _(_count).must_equal exp
test/minitest/test_minitest_test.rb
--- /tmp/d20251009-2288-b9qhfk/minitest-5.25.5/test/minitest/test_minitest_test.rb 2025-10-09 02:01:49.961342083 +0000
+++ /tmp/d20251009-2288-b9qhfk/minitest-5.26.0/test/minitest/test_minitest_test.rb 2025-10-09 02:01:49.967342091 +0000
@@ -665 +665 @@
- skip if Minitest.parallel_executor.size < 2 # locks up test runner if 1 CPU
+ skip unless Minitest.parallel_executor # locks up test runner if 1 CPU
|
4e0f1d1 to
55f243a
Compare
Bumps [minitest](https://github.com/minitest/minitest) from 5.25.5 to 5.26.0. - [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc) - [Commits](minitest/minitest@v5.25.5...v5.26.0) --- updated-dependencies: - dependency-name: minitest dependency-version: 5.26.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
55f243a to
ee8e872
Compare
Contributor
Author
|
Superseded by #825. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps minitest from 5.25.5 to 5.26.0.
Changelog
Sourced from minitest's changelog.
Commits
f78aa72prepped for release5faf12f- Use Regexp.escape for BASE_RE in case pwd has special chars. (astra_1993)839c5f0- Bypass parallel_executor entirely when n_threads=1.7c90742- Switched assert_equal's diff from Tempfile.open to Tempfile.create.b3dcd38clarify an assert_equal + newline + backslash n test output to be more readable14c87efImprove let tests to no longer be order dependent.6c995cf- Ensure that minitest exits non-zero on Interrupt. (tavianator)42ce806- Removed some 1.8/1.9-based code from the assertions and expectations.a17393e- Still fighting with rdoc? Yup. Still fighting with rdoc...68b3d0c- Don't require rubygems in Rakefile... it is 2025.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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)