minitest 5.20.0 → 5.25.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 667a803a272949e7b05440f91a56155ea3977a5b9d364542801889c5a2fe0ff0
4
- data.tar.gz: 862bf0ff3d24eea4bbe6c7f435ceef19aaa97748f6a87ec3fa51dc218ca79298
3
+ metadata.gz: 791576b6d19fd427617c1e5c02a7ddf55f3d214e75bdeeda4ec5ccb49bbad5d2
4
+ data.tar.gz: 95a6dccbd1cc86bf047b82e88725d50d0dd03dab9f1f6db0a02aad13f1398f10
5
5
  SHA512:
6
- metadata.gz: 2284c84ae5f98a3454e9a95417e609ca1a8ef9af8ee8b1fad8f2aca2632fde6a309e266ef1d399d9a7d47337cdcba696500a1b36f1fa7d952615eb390a89e329
7
- data.tar.gz: a76204f74c2caf693a4302065815b871863ae655372d25fc4d41e416b0d4935704c1e1068457b5cda934312e3915ae8a27595ca962c98e544dd45b54cac2aef7
6
+ metadata.gz: acde5c1dc093da1b6749b4e328fe5e0b86ba34c081b3d6e667165f8811ea3565774570e73216d67f8c337b5e3999193b2709a50bd69e0dc62ed211b86d087cb9
7
+ data.tar.gz: ee2390a10ef3ce15c17fef8d8387ff38509ac7c5bf9fd0bcbb1b6c160592821b268d713c0dc8c7357ddeaefb8ca08d0a04d96501c064e0c4f4781f7b3612bbb8
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,130 @@
1
+ === 5.25.1 / 2024-08-16
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Fix incompatibility caused by minitest-hooks & rails invading minitest internals.
6
+ * Revert change from =~ to match? to allow for nil if $TERM undefined.
7
+
8
+ === 5.25.0 / 2024-08-13
9
+
10
+ * 2 minor enhancements:
11
+
12
+ * Fixed some inefficiencies filtering and matching (mostly backtraces).
13
+ * Refactored siginfo handler to reduce runtime costs. Saved ~30%!
14
+
15
+ * 5 bug fixes:
16
+
17
+ * Added missing rdoc to get back to 100% coverage.
18
+ * Cleaning up ancient code checking for defined?(Encoding) and the like.
19
+ * Disambiguated some shadowed variables in minitest/compress.
20
+ * Fixed an ironic bug if using string-literals AND Werror.
21
+ * Improve description of test:slow task. (stomar)
22
+
23
+ === 5.24.1 / 2024-06-29
24
+
25
+ * 1 bug fix:
26
+
27
+ * Fix the error message when an extension is invalid value. (y-yagi)
28
+
29
+ === 5.24.0 / 2024-06-18
30
+
31
+ * 2 minor enhancements:
32
+
33
+ * Added Minitest.register_plugin.
34
+ * Extended plugin system to work with modules/classes for opt-out plugins.
35
+
36
+ * 1 bug fix:
37
+
38
+ * Removed anacronism, but allow load_plugins to exit gracefully if --disable=gems.
39
+
40
+ === 5.23.1 / 2024-05-21
41
+
42
+ * 1 bug fix:
43
+
44
+ * Fully qualify the Queue class to avoid conflicts with other libraries. (rafaelfranca)
45
+
46
+ === 5.23.0 / 2024-05-15
47
+
48
+ * 3 minor enhancements:
49
+
50
+ * Added -Werror to raise on any warning output. (byroot)
51
+ * Added UnexpectedWarning as a failure summary type, added count to output if activated.
52
+ * Added minitest/manual_plugins.rb w/ new Minitest.load method. (tenderlove)
53
+
54
+ * 2 bug fixes:
55
+
56
+ * Allow empty_run! and reporter to display summary for empty runs. (zzak)
57
+ * Make test task verbose using either rake's -v or -t (was just -t).
58
+
59
+ === 5.22.3 / 2024-03-13
60
+
61
+ * 1 minor enhancement:
62
+
63
+ * MASSIVE improvement of minitest's pride plugin output: Frequencies doubled! Sine waves shifted!! Comments improved!!! Colors rotated!!!! (havenwood)
64
+
65
+ * 3 bug fixes:
66
+
67
+ * Improved wording on Minitest::Test#parallelize_me! to clarify it goes INSIDE your test class/describe.
68
+ * Minor changes to tests to pass when tests ran with extra flags (eg -p).
69
+ * Support Ruby 3.4's new error message format. (mame)
70
+
71
+ === 5.22.2 / 2024-02-07
72
+
73
+ * 1 bug fix:
74
+
75
+ * Third time's a charm? Remember: 'ensure' is almost always the
76
+ wrong way to go (for results... it's great for cleaning up).
77
+
78
+ === 5.22.1 / 2024-02-06
79
+
80
+ * 1 bug fix:
81
+
82
+ * Don't exit non-zero if no tests ran and no filter (aka, the test file is empty).
83
+ (I'm starting to think the exit 1 thing for @tenderlove was a mistake...)
84
+
85
+ === 5.22.0 / 2024-02-05
86
+
87
+ * 1 minor enhancement:
88
+
89
+ * Added "did you mean" output if your --name filter matches nothing. (tenderlove)
90
+
91
+ * 2 bug fixes:
92
+
93
+ * Big cleanup of test filtering. Much prettier / more functional.
94
+ * Fix situation where Assertion#location can't find the location. (pftg)
95
+
96
+ === 5.21.2 / 2024-01-17
97
+
98
+ * 1 bug fix:
99
+
100
+ * Fixed bug in Minitest::Compress#compress formatting w/ nested patterns. Now recurses properly.
101
+
102
+ === 5.21.1 / 2024-01-11
103
+
104
+ * 1 bug fix:
105
+
106
+ * Rails' default backtrace filter can't currently work with caller_locations, so reverting back to caller.
107
+
108
+ === 5.21.0 / 2024-01-11
109
+
110
+ * 10 minor enhancements:
111
+
112
+ * Add include_all kw arg to assert_respond_to and refute_respond_to.
113
+ * Added --quiet flag to skip ProgressReporter (prints the dots). Minor speedup.
114
+ * Added Minitest::Compress#compress and added it to UnexpectedError.
115
+ * Added ability to initialize BacktraceFilter w/ custom regexp.
116
+ * Filter failure backtraces using backtrace_filter before calculating location. (thomasmarshall)
117
+ * Make BacktraceFilter#filter compatible with locations (still compares strings).
118
+ * Optimized Assertion#location ~30%.
119
+ * Output relative paths for all failures/errors/backtraces.
120
+ * Refactored location information in assertions, now using locations.
121
+ * Removed thread and mutex_m dependencies. (hsbt, eregon)
122
+
123
+ * 2 bug fixes:
124
+
125
+ * Drop undocumented bt arg in #skip. Dunno why that ever happened, prolly for testing?
126
+ * Fix mock to work with ruby debugger enabled. (keithlayne)
127
+
1
128
  === 5.20.0 / 2023-09-06
2
129
 
3
130
  * 1 minor enhancement:
@@ -9,7 +136,7 @@
9
136
  * 2 minor enhancements:
10
137
 
11
138
  * Add metadata lazy accessor to Runnable / Result. (matteeyah)
12
- * Only load minitest/unit (aka ancient MiniTest compatibility layer) if ENV["MT_COMPAT"]
139
+ * Only load minitest/unit (aka ancient MiniTest compatibility layer) if \ENV[\"MT_COMPAT\"]
13
140
 
14
141
  * 1 bug fix:
15
142
 
@@ -20,7 +147,7 @@
20
147
  * 3 bug fixes:
21
148
 
22
149
  * Avoid extra string allocations when filtering tests. (tenderlove)
23
- * Only mention deprecated ENV['N'] if it is an integer string.
150
+ * Only mention deprecated \ENV[\'N\'] if it is an integer string.
24
151
  * Push up test_order to Minitest::Runnable to fix minitest/hell. (koic)
25
152
 
26
153
  === 5.18.0 / 2023-03-04
@@ -214,7 +341,7 @@
214
341
 
215
342
  * 3 bug fixes:
216
343
 
217
- * Check `option[:filter]` klass before match. Fixes 2.6 warning. (y-yagi)
344
+ * Check \option[:filter] klass before match. Fixes 2.6 warning. (y-yagi)
218
345
  * Fixed Assertions#diff from recalculating if set to nil
219
346
  * Fixed spec section of readme to not use deprecated global expectations. (CheezItMan)
220
347
 
data/Manifest.txt CHANGED
@@ -9,8 +9,11 @@ lib/minitest.rb
9
9
  lib/minitest/assertions.rb
10
10
  lib/minitest/autorun.rb
11
11
  lib/minitest/benchmark.rb
12
+ lib/minitest/compress.rb
13
+ lib/minitest/error_on_warning.rb
12
14
  lib/minitest/expectations.rb
13
15
  lib/minitest/hell.rb
16
+ lib/minitest/manual_plugins.rb
14
17
  lib/minitest/mock.rb
15
18
  lib/minitest/parallel.rb
16
19
  lib/minitest/pride.rb
data/README.rdoc CHANGED
@@ -3,6 +3,7 @@
3
3
  home :: https://github.com/minitest/minitest
4
4
  bugs :: https://github.com/minitest/minitest/issues
5
5
  rdoc :: https://docs.seattlerb.org/minitest
6
+ clog :: https://github.com/minitest/minitest/blob/master/History.rdoc
6
7
  vim :: https://github.com/sunaku/vim-ruby-minitest
7
8
  emacs:: https://github.com/arthurnn/minitest-emacs
8
9
 
@@ -405,22 +406,23 @@ Using our example above, here is how we might implement MyCI:
405
406
 
406
407
  === What versions are compatible with what? Or what versions are supported?
407
408
 
408
- Minitest is a dependency of rails, which until fairly recently had an
409
+ Minitest is a dependency of rails, which until very recently had an
409
410
  overzealous backwards compatibility policy. As such, I'm stuck
410
411
  supporting versions of ruby that are long past EOL. Hopefully I'll be
411
412
  able to support only current versions of ruby sometime in the near
412
413
  future.
413
414
 
414
- (As of 2023-03-05)
415
+ (As of 2024-05-10)
415
416
 
416
417
  Current versions of rails: (https://endoflife.date/rails)
417
418
 
418
- | rails | min ruby | rec ruby | minitest | status | EOL Date |
419
- |-------+----------+----------+----------+----------+------------|
420
- | 7.0 | >= 2.7 | 3.1 | >= 5.1 | Current | 2025-06-01?|
421
- | 6.1 | >= 2.5 | 3.0 | >= 5.1 | Maint | 2024-06-01?|
422
- | 6.0 | >= 2.5 | 2.6 | >= 5.1 | Security | 2023-06-01 |
423
- | 5.2 | >= 2.2.2 | 2.5 | ~> 5.1 | EOL | 2022-06-01 |
419
+ | rails | min ruby | minitest | status | EOL Date |
420
+ |-------+----------+----------+----------+------------|
421
+ | 7.1 | >= 2.7 | >= 5.1 | Current | 2026-06-01?|
422
+ | 7.0 | >= 2.7 | >= 5.1 | Maint | 2025-06-01?|
423
+ | 6.1 | >= 2.5 | >= 5.1 | Security | 2024-06-01?|
424
+ | 6.0 | >= 2.5 | >= 5.1 | EOL | 2023-06-01 |
425
+ | 5.2 | >= 2.2.2 | ~> 5.1 | EOL | 2022-06-01 |
424
426
 
425
427
  If you want to look at the requirements for a specific version, run:
426
428
 
@@ -430,12 +432,13 @@ Current versions of ruby: (https://endoflife.date/ruby)
430
432
 
431
433
  | ruby | Status | EOL Date |
432
434
  |------+---------+------------|
433
- | 3.2 | Current | 2026-03-31 |
434
- | 3.1 | Maint | 2025-03-31 |
435
- | 3.0 | Maint | 2024-03-31 |
436
- | 2.7 | Security| 2023-03-31 |
435
+ | 3.3 | Current | 2027-03-31 |
436
+ | 3.2 | Maint | 2026-03-31 |
437
+ | 3.1 | Security| 2025-03-31 |
438
+ | 3.0 | EOL | 2024-03-31 |
439
+ | 2.7 | EOL | 2023-03-31 |
437
440
  | 2.6 | EOL | 2022-03-31 |
438
- | 2.5 | EOL | 2021-03-31 |
441
+ | 2.5 | EOL | 2021-03-31 | DO YOU SEE WHAT I'M STUCK WITH???
439
442
 
440
443
  === How to test SimpleDelegates?
441
444
 
data/Rakefile CHANGED
@@ -33,6 +33,7 @@ task :specs do
33
33
  /_includes/ => "_include",
34
34
  /(must|wont)_(.*_of|nil|silent|empty)/ => '\1_be_\2',
35
35
  /must_raises/ => "must_raise",
36
+ /(must|wont)_pattern/ => '\1_pattern_match',
36
37
  /(must|wont)_predicate/ => '\1_be',
37
38
  /(must|wont)_path_exists/ => 'path_\1_exist',
38
39
  }
@@ -72,4 +73,9 @@ task :bugs do
72
73
  sh "for f in bug*.rb ; do echo $f; echo; #{Gem.ruby} -Ilib $f && rm $f ; done"
73
74
  end
74
75
 
76
+ Minitest::TestTask.create :testW0 do |t|
77
+ t.warning = false
78
+ t.test_prelude = "$-w = nil"
79
+ end
80
+
75
81
  # vim: syntax=Ruby
data/lib/hoe/minitest.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # :stopdoc:
2
2
 
3
3
  class Hoe
4
+ # empty
4
5
  end
5
6
 
6
7
  module Hoe::Minitest
@@ -16,7 +17,7 @@ module Hoe::Minitest
16
17
 
17
18
  gem "minitest"
18
19
  require "minitest"
19
- version = Minitest::VERSION.split(/\./).first(2).join(".")
20
+ version = Minitest::VERSION.split(".").first(2).join "."
20
21
 
21
22
  dependency "minitest", "~> #{version}", :development unless
22
23
  minitest? or ENV["MT_NO_ISOLATE"]