test-unit 3.5.4 → 3.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +11 -0
- data/doc/text/news.md +122 -105
- data/lib/test/unit/attribute.rb +1 -1
- data/lib/test/unit/color-scheme.rb +10 -1
- data/lib/test/unit/ui/console/testrunner.rb +1 -0
- data/lib/test/unit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 76204c43946c95b92e409e9c59e020ca48d320d2b822af282501fbdaebe168b9
|
|
4
|
+
data.tar.gz: 179f9510fdde6181202a061baff981b84c06c6b255026757659f95f1c8d6695d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa93c81087b59e439aee294d98b0854127b3d9117729b9d9bcaf8e0f7672fbbab3fbf4a69b6b4902c5c44cc9d367ea10a3cdca9f27062875ca1c169c53efc3a8
|
|
7
|
+
data.tar.gz: f2e46b643c095e2a5538b984e5aa0082bfd98afd591b28a8e86cb3a261048a970783dd0c59e8b471e383087444e64f6dfe457a88402eef8318e7a369c3d4e25b
|
data/Rakefile
CHANGED
|
@@ -55,3 +55,14 @@ end
|
|
|
55
55
|
task :test do
|
|
56
56
|
ruby("test/run-test.rb")
|
|
57
57
|
end
|
|
58
|
+
|
|
59
|
+
namespace :doc do
|
|
60
|
+
task :add_permalink do
|
|
61
|
+
news_md = File.read("doc/text/news.md")
|
|
62
|
+
applied_permalink = news_md.gsub(/(?<pre>\[GitHub#(?<ref>\d+)\])(?!\()/) do
|
|
63
|
+
"#{Regexp.last_match[:pre]}(https://github.com/test-unit/test-unit/issues/#{Regexp.last_match[:ref]})"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
File.write("doc/text/news.md", applied_permalink)
|
|
67
|
+
end
|
|
68
|
+
end
|
data/doc/text/news.md
CHANGED
|
@@ -1,14 +1,31 @@
|
|
|
1
1
|
# News
|
|
2
2
|
|
|
3
|
+
## 3.5.6 - 2022-12-15 {#version-3-5-6}
|
|
4
|
+
|
|
5
|
+
### Improvements
|
|
6
|
+
|
|
7
|
+
* Enabled 256 colors output on GitHub Actions by default.
|
|
8
|
+
|
|
9
|
+
## 3.5.5 - 2022-10-04 {#version-3-5-5}
|
|
10
|
+
|
|
11
|
+
### Fixes
|
|
12
|
+
|
|
13
|
+
* Suppressed a warning.
|
|
14
|
+
[GitHub#219](https://github.com/test-unit/test-unit/issues/219)[Patch by Kenichi Kamiya]
|
|
15
|
+
|
|
16
|
+
### Thanks
|
|
17
|
+
|
|
18
|
+
* Kenichi Kamiya
|
|
19
|
+
|
|
3
20
|
## 3.5.4 - 2022-10-04 {#version-3-5-4}
|
|
4
21
|
|
|
5
22
|
### Improvements
|
|
6
23
|
|
|
7
24
|
* Don't raise an error on `Test::Unit::TestCase.clone`.
|
|
8
|
-
[GitHub#210][Reported by David Marchaland]
|
|
25
|
+
[GitHub#210](https://github.com/test-unit/test-unit/issues/210)[Reported by David Marchaland]
|
|
9
26
|
|
|
10
27
|
* Added support for `BigDeciaml` in `assert_in_delta` family.
|
|
11
|
-
[GitHub#218][Patch by Kenta Murata]
|
|
28
|
+
[GitHub#218](https://github.com/test-unit/test-unit/issues/218)[Patch by Kenta Murata]
|
|
12
29
|
|
|
13
30
|
### Thanks
|
|
14
31
|
|
|
@@ -21,7 +38,7 @@
|
|
|
21
38
|
### Improvements
|
|
22
39
|
|
|
23
40
|
* Made how to sub test case generation customizable.
|
|
24
|
-
[GitHub#207][Patch by Akira Matsuda]
|
|
41
|
+
[GitHub#207](https://github.com/test-unit/test-unit/issues/207)[Patch by Akira Matsuda]
|
|
25
42
|
|
|
26
43
|
### Thanks
|
|
27
44
|
|
|
@@ -32,7 +49,7 @@
|
|
|
32
49
|
### Improvements
|
|
33
50
|
|
|
34
51
|
* Required `fileutils` lazy.
|
|
35
|
-
[GitHub#206][Patch by David Rodríguez]
|
|
52
|
+
[GitHub#206](https://github.com/test-unit/test-unit/issues/206)[Patch by David Rodríguez]
|
|
36
53
|
|
|
37
54
|
### Thanks
|
|
38
55
|
|
|
@@ -74,7 +91,7 @@
|
|
|
74
91
|
### Fixes
|
|
75
92
|
|
|
76
93
|
* Suppressed a warning on Ruby 2.
|
|
77
|
-
[GitHub#205][Patch by Kenichi Kamiya]
|
|
94
|
+
[GitHub#205](https://github.com/test-unit/test-unit/issues/205)[Patch by Kenichi Kamiya]
|
|
78
95
|
|
|
79
96
|
### Thanks
|
|
80
97
|
|
|
@@ -95,21 +112,21 @@
|
|
|
95
112
|
### Improvements
|
|
96
113
|
|
|
97
114
|
* Added more metadata to gemspec.
|
|
98
|
-
[GitHub#183][Patch by Kenichi Kamiya]
|
|
115
|
+
[GitHub#183](https://github.com/test-unit/test-unit/issues/183)[Patch by Kenichi Kamiya]
|
|
99
116
|
|
|
100
117
|
* Removed needless files from gem.
|
|
101
|
-
[GitHub#184][Patch by Kenichi Kamiya]
|
|
118
|
+
[GitHub#184](https://github.com/test-unit/test-unit/issues/184)[Patch by Kenichi Kamiya]
|
|
102
119
|
|
|
103
120
|
* Updated documents.
|
|
104
|
-
[GitHub#191][GitHub#192][GitHub#193][GitHub#199][GitHub#200]
|
|
105
|
-
[GitHub#201][Patch by Kenichi Kamiya]
|
|
121
|
+
[GitHub#191](https://github.com/test-unit/test-unit/issues/191)[GitHub#192](https://github.com/test-unit/test-unit/issues/192)[GitHub#193](https://github.com/test-unit/test-unit/issues/193)[GitHub#199](https://github.com/test-unit/test-unit/issues/199)[GitHub#200](https://github.com/test-unit/test-unit/issues/200)
|
|
122
|
+
[GitHub#201](https://github.com/test-unit/test-unit/issues/201)[Patch by Kenichi Kamiya]
|
|
106
123
|
|
|
107
124
|
* Added `assert_nothing_leaked_memory`.
|
|
108
125
|
|
|
109
126
|
### Fixes
|
|
110
127
|
|
|
111
128
|
* Fixed typos in documents.
|
|
112
|
-
[GitHub#189][GitHub#190][GitHub#195][GitHub#197][Patch by Kenichi Kamiya]
|
|
129
|
+
[GitHub#189](https://github.com/test-unit/test-unit/issues/189)[GitHub#190](https://github.com/test-unit/test-unit/issues/190)[GitHub#195](https://github.com/test-unit/test-unit/issues/195)[GitHub#197](https://github.com/test-unit/test-unit/issues/197)[Patch by Kenichi Kamiya]
|
|
113
130
|
|
|
114
131
|
### Thanks
|
|
115
132
|
|
|
@@ -146,7 +163,7 @@
|
|
|
146
163
|
* Fixed a bug that `setup`/`cleanup`/`teardown` with block may be
|
|
147
164
|
overwritten by another `setup`/`cleanup`/`teardown` with
|
|
148
165
|
block. It's caused only with Ruby 2.6 or earlier.
|
|
149
|
-
[GitHub#179][Reported by akira yamada]
|
|
166
|
+
[GitHub#179](https://github.com/test-unit/test-unit/issues/179)[Reported by akira yamada]
|
|
150
167
|
|
|
151
168
|
### Thanks
|
|
152
169
|
|
|
@@ -163,7 +180,7 @@
|
|
|
163
180
|
### Improvements
|
|
164
181
|
|
|
165
182
|
* `assert_not_match`: Add support for `String` as pattern.
|
|
166
|
-
[GitHub#178][Patch by David Rodríguez]
|
|
183
|
+
[GitHub#178](https://github.com/test-unit/test-unit/issues/178)[Patch by David Rodríguez]
|
|
167
184
|
|
|
168
185
|
### Thanks
|
|
169
186
|
|
|
@@ -181,23 +198,23 @@
|
|
|
181
198
|
### Improvements
|
|
182
199
|
|
|
183
200
|
* Improved TruffleRuby support.
|
|
184
|
-
[GitHub#171][Reported by Benoit Daloze]
|
|
201
|
+
[GitHub#171](https://github.com/test-unit/test-unit/issues/171)[Reported by Benoit Daloze]
|
|
185
202
|
|
|
186
203
|
* Removed needless `to_sym`.
|
|
187
|
-
[GitHub#177][Patch by icm7216]
|
|
204
|
+
[GitHub#177](https://github.com/test-unit/test-unit/issues/177)[Patch by icm7216]
|
|
188
205
|
|
|
189
206
|
* `assert_raise`: Added backtrace for actual error.
|
|
190
207
|
|
|
191
208
|
* Improved terminal color availability detection.
|
|
192
|
-
[GitHub#175][Patch by nicholas a. evans]
|
|
209
|
+
[GitHub#175](https://github.com/test-unit/test-unit/issues/175)[Patch by nicholas a. evans]
|
|
193
210
|
|
|
194
211
|
* Changed license to the new Ruby's.
|
|
195
|
-
[GitHub#174]
|
|
212
|
+
[GitHub#174](https://github.com/test-unit/test-unit/issues/174)
|
|
196
213
|
|
|
197
214
|
### Fixes
|
|
198
215
|
|
|
199
216
|
* Fixed a typo in `--help` output:
|
|
200
|
-
[GitHub#176][Patch by icm7216]
|
|
217
|
+
[GitHub#176](https://github.com/test-unit/test-unit/issues/176)[Patch by icm7216]
|
|
201
218
|
|
|
202
219
|
### Thanks
|
|
203
220
|
|
|
@@ -219,7 +236,7 @@
|
|
|
219
236
|
[Reported by Jun Aruga]
|
|
220
237
|
|
|
221
238
|
* Updated ruby-talk mailing list information
|
|
222
|
-
[GitHub#168][Patch by Chris Kampmeier]
|
|
239
|
+
[GitHub#168](https://github.com/test-unit/test-unit/issues/168)[Patch by Chris Kampmeier]
|
|
223
240
|
|
|
224
241
|
### Thanks
|
|
225
242
|
|
|
@@ -232,7 +249,7 @@
|
|
|
232
249
|
### Improvements
|
|
233
250
|
|
|
234
251
|
* Improved code snippet showing with different default external encoding.
|
|
235
|
-
[GitHub#166][Patch by Yuta Iwama]
|
|
252
|
+
[GitHub#166](https://github.com/test-unit/test-unit/issues/166)[Patch by Yuta Iwama]
|
|
236
253
|
|
|
237
254
|
### Thanks
|
|
238
255
|
|
|
@@ -243,10 +260,10 @@
|
|
|
243
260
|
### Improvements
|
|
244
261
|
|
|
245
262
|
* Converted markup format to Markdown from RDoc.
|
|
246
|
-
[GitHub#164][Patch by OGAWA KenIchi]
|
|
263
|
+
[GitHub#164](https://github.com/test-unit/test-unit/issues/164)[Patch by OGAWA KenIchi]
|
|
247
264
|
|
|
248
265
|
* test: Stopped to depend on `Time#inspect` format.
|
|
249
|
-
[GitHub#165][Reported by Benoit Daloze]
|
|
266
|
+
[GitHub#165](https://github.com/test-unit/test-unit/issues/165)[Reported by Benoit Daloze]
|
|
250
267
|
|
|
251
268
|
### Thanks
|
|
252
269
|
|
|
@@ -281,7 +298,7 @@
|
|
|
281
298
|
* Added support for `Test::Unit::AssertionFailedError#user_message`
|
|
282
299
|
for not only `assert_equal` and `assert_raise` but also all
|
|
283
300
|
assertions.
|
|
284
|
-
[GitHub#162][Reported by xgraffm]
|
|
301
|
+
[GitHub#162](https://github.com/test-unit/test-unit/issues/162)[Reported by xgraffm]
|
|
285
302
|
|
|
286
303
|
### Thanks
|
|
287
304
|
|
|
@@ -296,10 +313,10 @@
|
|
|
296
313
|
|
|
297
314
|
* Added support for defining methods to test case class in multiple
|
|
298
315
|
threads.
|
|
299
|
-
[GitHub#159][Reported by Charles Oliver Nutter]
|
|
316
|
+
[GitHub#159](https://github.com/test-unit/test-unit/issues/159)[Reported by Charles Oliver Nutter]
|
|
300
317
|
|
|
301
318
|
* Suppressed warnings on Ruby 2.5.
|
|
302
|
-
[GitHub#160][Reported by Daniel Berger]
|
|
319
|
+
[GitHub#160](https://github.com/test-unit/test-unit/issues/160)[Reported by Daniel Berger]
|
|
303
320
|
|
|
304
321
|
* Suppressed warnings on Ruby 2.7.
|
|
305
322
|
|
|
@@ -307,7 +324,7 @@
|
|
|
307
324
|
|
|
308
325
|
* Fixed a code snippet fetch failure when source code isn't UTF-8
|
|
309
326
|
and the default external encoding is set to not UTF-8.
|
|
310
|
-
[GitHub#161][Reported by masa kunikata]
|
|
327
|
+
[GitHub#161](https://github.com/test-unit/test-unit/issues/161)[Reported by masa kunikata]
|
|
311
328
|
|
|
312
329
|
### Thanks
|
|
313
330
|
|
|
@@ -400,10 +417,10 @@
|
|
|
400
417
|
### Improvements
|
|
401
418
|
|
|
402
419
|
* Added source code link to gemspec.
|
|
403
|
-
[GitHub#157][Patch by Grey Baker]
|
|
420
|
+
[GitHub#157](https://github.com/test-unit/test-unit/issues/157)[Patch by Grey Baker]
|
|
404
421
|
|
|
405
422
|
* Changed to use SVG image for badges in README.
|
|
406
|
-
[GitHub#158][Patch by Olle Jonsson]
|
|
423
|
+
[GitHub#158](https://github.com/test-unit/test-unit/issues/158)[Patch by Olle Jonsson]
|
|
407
424
|
|
|
408
425
|
* [UI][console]: Added `--reverse-output` option to output fault
|
|
409
426
|
details in reverse like Ruby 2.5. It's enabled by default only for
|
|
@@ -412,7 +429,7 @@
|
|
|
412
429
|
### Fixes
|
|
413
430
|
|
|
414
431
|
* Fixed a typo.
|
|
415
|
-
[GitHub#156][Patch by masa kunikata]
|
|
432
|
+
[GitHub#156](https://github.com/test-unit/test-unit/issues/156)[Patch by masa kunikata]
|
|
416
433
|
|
|
417
434
|
* [UI][console]: Fixed a bug that broken align in verbose mode.
|
|
418
435
|
|
|
@@ -429,7 +446,7 @@
|
|
|
429
446
|
### Improvements
|
|
430
447
|
|
|
431
448
|
* Changed test file require failure to error from omission.
|
|
432
|
-
[GitHub#154][Patch by naofumi-fujii]
|
|
449
|
+
[GitHub#154](https://github.com/test-unit/test-unit/issues/154)[Patch by naofumi-fujii]
|
|
433
450
|
|
|
434
451
|
### Thanks
|
|
435
452
|
|
|
@@ -440,7 +457,7 @@
|
|
|
440
457
|
### Improvements
|
|
441
458
|
|
|
442
459
|
* Supported `--enable-frozen-string-literal` `ruby` option.
|
|
443
|
-
[GitHub#149][Reported by Pat Allan]
|
|
460
|
+
[GitHub#149](https://github.com/test-unit/test-unit/issues/149)[Reported by Pat Allan]
|
|
444
461
|
|
|
445
462
|
### Thanks
|
|
446
463
|
|
|
@@ -452,39 +469,39 @@
|
|
|
452
469
|
|
|
453
470
|
* Updated tests for Ruby 2.4. [GitHUb#136][Patch by Kazuki Tsujimoto]
|
|
454
471
|
|
|
455
|
-
* Supported power\_assert 1.0.0. [GitHub#137][Patch by Kazuki Tsujimoto]
|
|
472
|
+
* Supported power\_assert 1.0.0. [GitHub#137](https://github.com/test-unit/test-unit/issues/137)[Patch by Kazuki Tsujimoto]
|
|
456
473
|
|
|
457
474
|
* Added the getting started document.
|
|
458
|
-
[GitHub#139][GitHub#141][Patch by Hiroyuki Sato]
|
|
475
|
+
[GitHub#139](https://github.com/test-unit/test-unit/issues/139)[GitHub#141](https://github.com/test-unit/test-unit/issues/141)[Patch by Hiroyuki Sato]
|
|
459
476
|
|
|
460
477
|
* Added the document for `attribute`.
|
|
461
|
-
[GitHub#143][Patch by Fumiaki MATSUSHIMA]
|
|
478
|
+
[GitHub#143](https://github.com/test-unit/test-unit/issues/143)[Patch by Fumiaki MATSUSHIMA]
|
|
462
479
|
|
|
463
|
-
* Improved a link for GitHub. [GitHub#144][Patch by rochefort]
|
|
480
|
+
* Improved a link for GitHub. [GitHub#144](https://github.com/test-unit/test-unit/issues/144)[Patch by rochefort]
|
|
464
481
|
|
|
465
|
-
* Updated `.travis.yml`. [GitHub#145][Patch by Jun Aruga]
|
|
482
|
+
* Updated `.travis.yml`. [GitHub#145](https://github.com/test-unit/test-unit/issues/145)[Patch by Jun Aruga]
|
|
466
483
|
|
|
467
484
|
### Fixes
|
|
468
485
|
|
|
469
|
-
* Fixed a contributor name. [GitHub#131][Patch by Akira Matsuda]
|
|
486
|
+
* Fixed a contributor name. [GitHub#131](https://github.com/test-unit/test-unit/issues/131)[Patch by Akira Matsuda]
|
|
470
487
|
|
|
471
|
-
* Fixed typos in document. [GitHub#132][Patch by Akira Matsuda]
|
|
488
|
+
* Fixed typos in document. [GitHub#132](https://github.com/test-unit/test-unit/issues/132)[Patch by Akira Matsuda]
|
|
472
489
|
|
|
473
|
-
* Fixed typos in document. [GitHub#134][Patch by Yuji Yaginuma]
|
|
490
|
+
* Fixed typos in document. [GitHub#134](https://github.com/test-unit/test-unit/issues/134)[Patch by Yuji Yaginuma]
|
|
474
491
|
|
|
475
492
|
* Fixed a bug that data label with "(" isn't supported.
|
|
476
|
-
[GitHub#135][Reported by Kazuki Tsujimoto]
|
|
493
|
+
[GitHub#135](https://github.com/test-unit/test-unit/issues/135)[Reported by Kazuki Tsujimoto]
|
|
477
494
|
|
|
478
495
|
* Fixed assertion message in English.
|
|
479
|
-
[GitHub#133][Reported by Khalil Fazal]
|
|
496
|
+
[GitHub#133](https://github.com/test-unit/test-unit/issues/133)[Reported by Khalil Fazal]
|
|
480
497
|
|
|
481
|
-
* Fixed a typo in typo fix. [GitHub#138][Patch by kami]
|
|
498
|
+
* Fixed a typo in typo fix. [GitHub#138](https://github.com/test-unit/test-unit/issues/138)[Patch by kami]
|
|
482
499
|
|
|
483
500
|
* Fixed a bug that target location finder may return wrong
|
|
484
|
-
location. [GitHub#146][Patch by Yuki Ito]
|
|
501
|
+
location. [GitHub#146](https://github.com/test-unit/test-unit/issues/146)[Patch by Yuki Ito]
|
|
485
502
|
|
|
486
503
|
* Fixed a bug that `--no-show-detail-immediately` raises an error.
|
|
487
|
-
[GitHub#147][Reported by MSP-Greg]
|
|
504
|
+
[GitHub#147](https://github.com/test-unit/test-unit/issues/147)[Reported by MSP-Greg]
|
|
488
505
|
|
|
489
506
|
### Thanks
|
|
490
507
|
|
|
@@ -515,7 +532,7 @@
|
|
|
515
532
|
### Fixes
|
|
516
533
|
|
|
517
534
|
* Fixed a bug that `--order` isn't applied.
|
|
518
|
-
[GitHub#129][Reported by Vít Ondruch]
|
|
535
|
+
[GitHub#129](https://github.com/test-unit/test-unit/issues/129)[Reported by Vít Ondruch]
|
|
519
536
|
|
|
520
537
|
### Thanks
|
|
521
538
|
|
|
@@ -526,14 +543,14 @@
|
|
|
526
543
|
### Improvements
|
|
527
544
|
|
|
528
545
|
* Improved Travis CI configuration.
|
|
529
|
-
[GitHub#123][Patch by Ryunosuke Sato]
|
|
546
|
+
[GitHub#123](https://github.com/test-unit/test-unit/issues/123)[Patch by Ryunosuke Sato]
|
|
530
547
|
|
|
531
548
|
* Supported Java native exception.
|
|
532
|
-
[GitHub#126][Reported by Bob Saveland]
|
|
549
|
+
[GitHub#126](https://github.com/test-unit/test-unit/issues/126)[Reported by Bob Saveland]
|
|
533
550
|
|
|
534
551
|
### Fixes
|
|
535
552
|
|
|
536
|
-
* doc: Fixed markup. [GitHub#127][Patch by Tomohiro Hashidate]
|
|
553
|
+
* doc: Fixed markup. [GitHub#127](https://github.com/test-unit/test-unit/issues/127)[Patch by Tomohiro Hashidate]
|
|
537
554
|
|
|
538
555
|
* Fixed a bug that `--location=LINE` may not detect a test when
|
|
539
556
|
fixtures are defined before any tests:
|
|
@@ -570,7 +587,7 @@
|
|
|
570
587
|
|
|
571
588
|
* Reported norification when data driven test doesn't have
|
|
572
589
|
parameter.
|
|
573
|
-
[GitHub#122][Reported by Satoshi "Moris" Tagomori]
|
|
590
|
+
[GitHub#122](https://github.com/test-unit/test-unit/issues/122)[Reported by Satoshi "Moris" Tagomori]
|
|
574
591
|
|
|
575
592
|
### Thanks
|
|
576
593
|
|
|
@@ -583,7 +600,7 @@
|
|
|
583
600
|
### Improvements
|
|
584
601
|
|
|
585
602
|
* Supported rxvt family terminals as color available terminals.
|
|
586
|
-
[GitHub#121][Reported by Ippei Kishida]
|
|
603
|
+
[GitHub#121](https://github.com/test-unit/test-unit/issues/121)[Reported by Ippei Kishida]
|
|
587
604
|
|
|
588
605
|
### Thanks
|
|
589
606
|
|
|
@@ -594,7 +611,7 @@
|
|
|
594
611
|
### Fixes
|
|
595
612
|
|
|
596
613
|
* Fixed conflict with test-unit-power_assert.
|
|
597
|
-
[GitHub#120][Patch by Kazuki Tsujimoto]
|
|
614
|
+
[GitHub#120](https://github.com/test-unit/test-unit/issues/120)[Patch by Kazuki Tsujimoto]
|
|
598
615
|
|
|
599
616
|
* Fixed a bug that path in `$LOAD_PATH` may be removed.
|
|
600
617
|
|
|
@@ -623,7 +640,7 @@ It's a Ruby on Rails integration improvement release.
|
|
|
623
640
|
### Improvements
|
|
624
641
|
|
|
625
642
|
* Filtered backtrace of power\_assert.
|
|
626
|
-
[GitHub#114]
|
|
643
|
+
[GitHub#114](https://github.com/test-unit/test-unit/issues/114)
|
|
627
644
|
* Improved performance to retrieve test defined location.
|
|
628
645
|
* Improved performance to run fixtures in a test.
|
|
629
646
|
* Supported running a test by `yield` in `setup`:
|
|
@@ -663,7 +680,7 @@ It's a Ruby on Rails integration improvement release.
|
|
|
663
680
|
|
|
664
681
|
* Fixed a bug that test isn't ran. The test has the same name as
|
|
665
682
|
data driven test that is defined in parent test case.
|
|
666
|
-
[GitHub#115]
|
|
683
|
+
[GitHub#115](https://github.com/test-unit/test-unit/issues/115)
|
|
667
684
|
|
|
668
685
|
## 3.1.5 - 2015-10-09 {#version-3-1-5}
|
|
669
686
|
|
|
@@ -673,7 +690,7 @@ It's a Rack integration improvement release.
|
|
|
673
690
|
|
|
674
691
|
* Renamed experimental top-level `run` method to `run_test` method
|
|
675
692
|
because `run` is conflicted with Rack.
|
|
676
|
-
[GitHub#32][GitHub:basecamp/pow#303] [Reported by Yevhen Viktorov]
|
|
693
|
+
[GitHub#32](https://github.com/test-unit/test-unit/issues/32)[GitHub:basecamp/pow#303] [Reported by Yevhen Viktorov]
|
|
677
694
|
|
|
678
695
|
### Thanks
|
|
679
696
|
|
|
@@ -685,14 +702,14 @@ It's a minor improvement release.
|
|
|
685
702
|
|
|
686
703
|
### Improvements
|
|
687
704
|
|
|
688
|
-
* Updated sample code. [GitHub#109][Patch by takiy33]
|
|
689
|
-
* Updated .travis.yml. [GitHub#110][Patch by takiy33]
|
|
705
|
+
* Updated sample code. [GitHub#109](https://github.com/test-unit/test-unit/issues/109)[Patch by takiy33]
|
|
706
|
+
* Updated .travis.yml. [GitHub#110](https://github.com/test-unit/test-unit/issues/110)[Patch by takiy33]
|
|
690
707
|
* document: Added table header in how to document.
|
|
691
|
-
[GitHub#111][Patch by takiy33]
|
|
708
|
+
[GitHub#111](https://github.com/test-unit/test-unit/issues/111)[Patch by takiy33]
|
|
692
709
|
* Removed duplicated code.
|
|
693
|
-
[GitHub#112][Patch by takiy33]
|
|
710
|
+
[GitHub#112](https://github.com/test-unit/test-unit/issues/112)[Patch by takiy33]
|
|
694
711
|
* Removed needless encoding conversion in fetching code snippet.
|
|
695
|
-
[GitHub#113][Patch by NARUSE, Yui]
|
|
712
|
+
[GitHub#113](https://github.com/test-unit/test-unit/issues/113)[Patch by NARUSE, Yui]
|
|
696
713
|
|
|
697
714
|
### Thanks
|
|
698
715
|
|
|
@@ -705,7 +722,7 @@ It's a bug fix release.
|
|
|
705
722
|
|
|
706
723
|
### Improvements
|
|
707
724
|
|
|
708
|
-
* Removed unused `TODO` file. [GitHub#108][Patch by takiy33]
|
|
725
|
+
* Removed unused `TODO` file. [GitHub#108](https://github.com/test-unit/test-unit/issues/108)[Patch by takiy33]
|
|
709
726
|
|
|
710
727
|
### Fixes
|
|
711
728
|
|
|
@@ -760,7 +777,7 @@ It's a bug fix release.
|
|
|
760
777
|
|
|
761
778
|
* Fixed a bug that `--location` detects tests not only in sub test
|
|
762
779
|
case but also parent test case.
|
|
763
|
-
[GitHub#105][Reported by wanabe]
|
|
780
|
+
[GitHub#105](https://github.com/test-unit/test-unit/issues/105)[Reported by wanabe]
|
|
764
781
|
|
|
765
782
|
### Thanks
|
|
766
783
|
|
|
@@ -777,18 +794,18 @@ It's a bug fix release.
|
|
|
777
794
|
### Fixes
|
|
778
795
|
|
|
779
796
|
* Fixed a bug that priority mode can't be used on Windows.
|
|
780
|
-
[GitHub#95][Reported by Daniel Berger]
|
|
797
|
+
[GitHub#95](https://github.com/test-unit/test-unit/issues/95)[Reported by Daniel Berger]
|
|
781
798
|
* Fixed a homepage URL RubyGems spec.
|
|
782
|
-
[GitHub#96][Patch by Masayoshi Takahashi]
|
|
783
|
-
supported.) [GitHub#89][Patch by Aaron Stone]
|
|
799
|
+
[GitHub#96](https://github.com/test-unit/test-unit/issues/96)[Patch by Masayoshi Takahashi]
|
|
800
|
+
supported.) [GitHub#89](https://github.com/test-unit/test-unit/issues/89)[Patch by Aaron Stone]
|
|
784
801
|
* Fixed a bug that shutdown hook isn't called when pass throw
|
|
785
802
|
exception such as `Interrupt` is raised.
|
|
786
|
-
[GitHub#98][Reported by jeremiahishere.]
|
|
803
|
+
[GitHub#98](https://github.com/test-unit/test-unit/issues/98)[Reported by jeremiahishere.]
|
|
787
804
|
* Fixed typos in documents.
|
|
788
|
-
[GitHub#100][Reported by scivola]
|
|
789
|
-
[GitHub#102][GitHub#103][Patch by Masafumi Yokoyama]
|
|
805
|
+
[GitHub#100](https://github.com/test-unit/test-unit/issues/100)[Reported by scivola]
|
|
806
|
+
[GitHub#102](https://github.com/test-unit/test-unit/issues/102)[GitHub#103](https://github.com/test-unit/test-unit/issues/103)[Patch by Masafumi Yokoyama]
|
|
790
807
|
* Fixed a bug that the same name test isn't executed in sub test case.
|
|
791
|
-
[GitHub#104][Reported by wanabe]
|
|
808
|
+
[GitHub#104](https://github.com/test-unit/test-unit/issues/104)[Reported by wanabe]
|
|
792
809
|
|
|
793
810
|
### Thanks
|
|
794
811
|
|
|
@@ -806,9 +823,9 @@ It's a release that improves colors.
|
|
|
806
823
|
### Improvements
|
|
807
824
|
|
|
808
825
|
* Added a work around for Ruby 1.8. (Note: Ruby 1.8 isn't
|
|
809
|
-
supported.) [GitHub#89][Patch by Aaron Stone]
|
|
826
|
+
supported.) [GitHub#89](https://github.com/test-unit/test-unit/issues/89)[Patch by Aaron Stone]
|
|
810
827
|
* Supported colorized output on Windows.
|
|
811
|
-
[GitHub#90][Patch by usa]
|
|
828
|
+
[GitHub#90](https://github.com/test-unit/test-unit/issues/90)[Patch by usa]
|
|
812
829
|
* Improved colorized output.
|
|
813
830
|
http://www.a-k-r.org/d/2014-12.html#a2014_12_27_1
|
|
814
831
|
[Suggested by Tanaka Akira]
|
|
@@ -828,7 +845,7 @@ It's a release that supports Ruby 2.2.0 preview2.
|
|
|
828
845
|
* Added a link for YARD in README.
|
|
829
846
|
[GitHub:test-unit.github.io#2][Reported by sunnyone]
|
|
830
847
|
* Added description about "/PATTERN/" style value in auto runner usage.
|
|
831
|
-
[GitHub#86][Suggested by sunnyone]
|
|
848
|
+
[GitHub#86](https://github.com/test-unit/test-unit/issues/86)[Suggested by sunnyone]
|
|
832
849
|
* Supported Ruby 2.2.0 preview2 in `assert_throw` and
|
|
833
850
|
`assert_nothing_thrown`.
|
|
834
851
|
|
|
@@ -836,7 +853,7 @@ It's a release that supports Ruby 2.2.0 preview2.
|
|
|
836
853
|
|
|
837
854
|
* Fixed a bug that error report is failed when source encoding and
|
|
838
855
|
locale encoding are different.
|
|
839
|
-
[GitHub#87][Reported by scivola]
|
|
856
|
+
[GitHub#87](https://github.com/test-unit/test-unit/issues/87)[Reported by scivola]
|
|
840
857
|
|
|
841
858
|
### Thanks
|
|
842
859
|
|
|
@@ -851,7 +868,7 @@ It's a minor update release.
|
|
|
851
868
|
|
|
852
869
|
* Fixed a bug that teardown blocks aren't called with sub class to
|
|
853
870
|
parent class order.
|
|
854
|
-
[GitHub#85][Reported by TOMITA Masahiro]
|
|
871
|
+
[GitHub#85](https://github.com/test-unit/test-unit/issues/85)[Reported by TOMITA Masahiro]
|
|
855
872
|
|
|
856
873
|
### Thanks
|
|
857
874
|
|
|
@@ -864,7 +881,7 @@ It's a minor update release.
|
|
|
864
881
|
### Improvements
|
|
865
882
|
|
|
866
883
|
* Improved code snippet location.
|
|
867
|
-
[GitHub#84][Patch by Yuki Kurihara]
|
|
884
|
+
[GitHub#84](https://github.com/test-unit/test-unit/issues/84)[Patch by Yuki Kurihara]
|
|
868
885
|
|
|
869
886
|
### Thanks
|
|
870
887
|
|
|
@@ -878,7 +895,7 @@ It's a minor update release.
|
|
|
878
895
|
|
|
879
896
|
* Fixed a bug that startup/shutdown of parent test case isn't called
|
|
880
897
|
when the test case includes one or more modules.
|
|
881
|
-
[GitHub#83][Reported by Chadderton Odwazny]
|
|
898
|
+
[GitHub#83](https://github.com/test-unit/test-unit/issues/83)[Reported by Chadderton Odwazny]
|
|
882
899
|
|
|
883
900
|
### Thanks
|
|
884
901
|
|
|
@@ -892,7 +909,7 @@ It's a minor update release.
|
|
|
892
909
|
|
|
893
910
|
* Stopped to remove JRuby and Rubinius internal backtrace entries from
|
|
894
911
|
backtrace on failure/error.
|
|
895
|
-
[GitHub#82][Patch by Charles Oliver Nutter]
|
|
912
|
+
[GitHub#82](https://github.com/test-unit/test-unit/issues/82)[Patch by Charles Oliver Nutter]
|
|
896
913
|
|
|
897
914
|
### Thanks
|
|
898
915
|
|
|
@@ -912,7 +929,7 @@ It's a minor update release.
|
|
|
912
929
|
### Fixes
|
|
913
930
|
|
|
914
931
|
* Fixed markup in document.
|
|
915
|
-
[GitHub#81][Patch by Masafumi Yokoyama]
|
|
932
|
+
[GitHub#81](https://github.com/test-unit/test-unit/issues/81)[Patch by Masafumi Yokoyama]
|
|
916
933
|
|
|
917
934
|
### Thanks
|
|
918
935
|
|
|
@@ -927,18 +944,18 @@ It's a minor update release.
|
|
|
927
944
|
|
|
928
945
|
* Supported broken `==` implementation.
|
|
929
946
|
`==` implementation should be fixed but it's not work of test-unit. :<
|
|
930
|
-
[GitHub#71][Reported by Emily]
|
|
947
|
+
[GitHub#71](https://github.com/test-unit/test-unit/issues/71)[Reported by Emily]
|
|
931
948
|
* [UI][console]: Accepted no message failure.
|
|
932
|
-
[GitHub#66][Reported by Brian Tatnall]
|
|
949
|
+
[GitHub#66](https://github.com/test-unit/test-unit/issues/66)[Reported by Brian Tatnall]
|
|
933
950
|
* Updated gem description.
|
|
934
|
-
[GitHub#74][Patch by Vít Ondruch]
|
|
951
|
+
[GitHub#74](https://github.com/test-unit/test-unit/issues/74)[Patch by Vít Ondruch]
|
|
935
952
|
* Updated GPL text.
|
|
936
|
-
[GitHub#78][Patch by Vít Ondruch]
|
|
953
|
+
[GitHub#78](https://github.com/test-unit/test-unit/issues/78)[Patch by Vít Ondruch]
|
|
937
954
|
|
|
938
955
|
### Fixes
|
|
939
956
|
|
|
940
957
|
* Removed needless executable bit from README file.
|
|
941
|
-
[GitHub#79][Patch by Vít Ondruch]
|
|
958
|
+
[GitHub#79](https://github.com/test-unit/test-unit/issues/79)[Patch by Vít Ondruch]
|
|
942
959
|
|
|
943
960
|
### Thanks
|
|
944
961
|
|
|
@@ -954,7 +971,7 @@ It's a minor update release.
|
|
|
954
971
|
|
|
955
972
|
* Improved Ruby 1.8.7 support. Note that we don't support Ruby 1.8.7
|
|
956
973
|
actively. We just support if its support is painless.
|
|
957
|
-
[GitHub#71][Patch by estolfo]
|
|
974
|
+
[GitHub#71](https://github.com/test-unit/test-unit/issues/71)[Patch by estolfo]
|
|
958
975
|
|
|
959
976
|
### Thanks
|
|
960
977
|
|
|
@@ -967,10 +984,10 @@ It's Power Assert supported release!
|
|
|
967
984
|
### Improvements
|
|
968
985
|
|
|
969
986
|
* Improved Rubinius support. [Ryo Onodera]
|
|
970
|
-
* Updated RR repository link. [GitHub#56][Patch by Kenichi Kamiya]
|
|
987
|
+
* Updated RR repository link. [GitHub#56](https://github.com/test-unit/test-unit/issues/56)[Patch by Kenichi Kamiya]
|
|
971
988
|
* Added some minitest compatible assertions. We don't recommend
|
|
972
989
|
using these assertions. They are just for migrating from minitest.
|
|
973
|
-
[GitHub#57][Patch by Karol Bucek]
|
|
990
|
+
[GitHub#57](https://github.com/test-unit/test-unit/issues/57)[Patch by Karol Bucek]
|
|
974
991
|
* {Test::Unit::Assertions#refute}
|
|
975
992
|
* {Test::Unit::Assertions#refute_predicate}
|
|
976
993
|
* {Test::Unit::Assertions#refute_empty}
|
|
@@ -984,13 +1001,13 @@ It's Power Assert supported release!
|
|
|
984
1001
|
* {Test::Unit::Assertions#refute_operator}
|
|
985
1002
|
* Improved code readability. [Suggested by Kenichi Kamiya]
|
|
986
1003
|
* Made license field in RubyGems parseable.
|
|
987
|
-
[GitHub#60][Patch by Michael Grosser]
|
|
1004
|
+
[GitHub#60](https://github.com/test-unit/test-unit/issues/60)[Patch by Michael Grosser]
|
|
988
1005
|
* Improved test case match feature by `--testcase` and `--ignore-testcase`
|
|
989
1006
|
options. They also checks parent class names.
|
|
990
1007
|
* Made inspected representation of Numeric objects especially
|
|
991
|
-
BigDecimal more readable. [GitHub#64][Reported by Byron Appelt]
|
|
1008
|
+
BigDecimal more readable. [GitHub#64](https://github.com/test-unit/test-unit/issues/64)[Reported by Byron Appelt]
|
|
992
1009
|
* Added badges for Traivs CI and RubyGems.
|
|
993
|
-
[GitHub#65][Patch by Byron Appelt]
|
|
1010
|
+
[GitHub#65](https://github.com/test-unit/test-unit/issues/65)[Patch by Byron Appelt]
|
|
994
1011
|
* Supported Power Assert. You can use Power Assert with
|
|
995
1012
|
{Test::Unit::Assertions#assert} with block. See method document
|
|
996
1013
|
for details. We recommend using Power Assert for predicate method
|
|
@@ -1004,10 +1021,10 @@ It's Power Assert supported release!
|
|
|
1004
1021
|
### Fixes
|
|
1005
1022
|
|
|
1006
1023
|
* Fixed a bug that test case defined by block has wrong location.
|
|
1007
|
-
[GitHub#58][Patch by Narihiro Nakamura]
|
|
1024
|
+
[GitHub#58](https://github.com/test-unit/test-unit/issues/58)[Patch by Narihiro Nakamura]
|
|
1008
1025
|
* Fixed a bug that test methods defined in included modules in
|
|
1009
1026
|
super-class are also collected.
|
|
1010
|
-
[GitHub#62][GitHub#63][Patch by Karol Bucek]
|
|
1027
|
+
[GitHub#62](https://github.com/test-unit/test-unit/issues/62)[GitHub#63](https://github.com/test-unit/test-unit/issues/63)[Patch by Karol Bucek]
|
|
1011
1028
|
|
|
1012
1029
|
### Thanks
|
|
1013
1030
|
|
|
@@ -1025,14 +1042,14 @@ It's Ruby 2.0.0 supported release!
|
|
|
1025
1042
|
|
|
1026
1043
|
### Improvements
|
|
1027
1044
|
|
|
1028
|
-
* Supported Ruby 2.0.0. [GitHub#54] [Reported by mtasaka]
|
|
1045
|
+
* Supported Ruby 2.0.0. [GitHub#54](https://github.com/test-unit/test-unit/issues/54) [Reported by mtasaka]
|
|
1029
1046
|
* Accepted screen-256color TERM as 256 colors available environment.
|
|
1030
|
-
[GitHub#55] [Reported by Tom Miller]
|
|
1047
|
+
[GitHub#55](https://github.com/test-unit/test-unit/issues/55) [Reported by Tom Miller]
|
|
1031
1048
|
|
|
1032
1049
|
### Fixes
|
|
1033
1050
|
|
|
1034
1051
|
* Fixed a typo in document.
|
|
1035
|
-
[GitHub#53] [Patch by Baptiste Fontaine]
|
|
1052
|
+
[GitHub#53](https://github.com/test-unit/test-unit/issues/53) [Patch by Baptiste Fontaine]
|
|
1036
1053
|
* Fixed a bug in {Test::Unit::Assertions#assert_in_epsilon}. It doesn't work
|
|
1037
1054
|
as expected if expected value is negative value.
|
|
1038
1055
|
[Ruby Bug #8317] [Reported by Nobuhiro IMAI]
|
|
@@ -1057,7 +1074,7 @@ It's a bug fix release.
|
|
|
1057
1074
|
### Fixes
|
|
1058
1075
|
|
|
1059
1076
|
* Fixed a bug. It is too slow to filter tests when there are many
|
|
1060
|
-
tests. [GitHub#46]
|
|
1077
|
+
tests. [GitHub#46](https://github.com/test-unit/test-unit/issues/46)
|
|
1061
1078
|
* Accept anonymous test suite.
|
|
1062
1079
|
[GitHub:#49] [Reported by Matthew Rudy Jacobs]
|
|
1063
1080
|
|
|
@@ -1075,21 +1092,21 @@ It's a release for minitest compatibility and bug fix.
|
|
|
1075
1092
|
* Added some assersion methods just for minitest compatibility.
|
|
1076
1093
|
Added methods are assert_includes(), refute_*() and refute().
|
|
1077
1094
|
If you are test-unit user, please don't use them.
|
|
1078
|
-
[GitHub#40] [Suggested by Michael Grosser]
|
|
1095
|
+
[GitHub#40](https://github.com/test-unit/test-unit/issues/40) [Suggested by Michael Grosser]
|
|
1079
1096
|
* Added --attribute option to select target tests by attribute.
|
|
1080
1097
|
[test-unit-users-en:00098] [Suggested by Piotr Nestorow]
|
|
1081
1098
|
|
|
1082
1099
|
### Fixes
|
|
1083
1100
|
|
|
1084
1101
|
* Allowed use of test for inheritance in ActionController::TestCase.
|
|
1085
|
-
[GitHub#42] [Patch by David Rasch]
|
|
1102
|
+
[GitHub#42](https://github.com/test-unit/test-unit/issues/42) [Patch by David Rasch]
|
|
1086
1103
|
* Ensured evaluating at_exit block in top level.
|
|
1087
1104
|
In IRB context, exit() specifies irb_exit().
|
|
1088
1105
|
[test-unit-users-en:00089] [Reported by Daniel Berger]
|
|
1089
1106
|
* Fixed a bug that decoration style description is ignored.
|
|
1090
1107
|
"decoration style description" are using description method
|
|
1091
1108
|
above "def test_name" or with Symbol specifying test_name.
|
|
1092
|
-
[GitHub#45] [Reported by Piotr Nestorow]
|
|
1109
|
+
[GitHub#45](https://github.com/test-unit/test-unit/issues/45) [Reported by Piotr Nestorow]
|
|
1093
1110
|
|
|
1094
1111
|
### Thanks
|
|
1095
1112
|
|
|
@@ -1107,10 +1124,10 @@ feature to `context` in shoulda-context and RSpec.
|
|
|
1107
1124
|
### Improvements
|
|
1108
1125
|
|
|
1109
1126
|
* Cleaned up tests.
|
|
1110
|
-
[GitHub#34] [Patch by Michael Grosser]
|
|
1127
|
+
[GitHub#34](https://github.com/test-unit/test-unit/issues/34) [Patch by Michael Grosser]
|
|
1111
1128
|
* Added missing background color for 8 color environment.
|
|
1112
1129
|
* Added workaround for NetBeans.
|
|
1113
|
-
[GitHub#38] [Reported by Marc Cooper]
|
|
1130
|
+
[GitHub#38](https://github.com/test-unit/test-unit/issues/38) [Reported by Marc Cooper]
|
|
1114
1131
|
* Added `--location` command line option that selects target tests
|
|
1115
1132
|
by test defined location.
|
|
1116
1133
|
* Created sub test suite for each subclassed test case.
|
|
@@ -1120,7 +1137,7 @@ feature to `context` in shoulda-context and RSpec.
|
|
|
1120
1137
|
[Good hook name is suggested by kdmsnr]
|
|
1121
1138
|
* Improved code snippet target on failure. Test method is always used
|
|
1122
1139
|
for code snippet target.
|
|
1123
|
-
[GitHub#39] [Suggested by Michael Grosser]
|
|
1140
|
+
[GitHub#39](https://github.com/test-unit/test-unit/issues/39) [Suggested by Michael Grosser]
|
|
1124
1141
|
* Added {Test::Unit::TestCase.sub_test_case} that creates sub test case.
|
|
1125
1142
|
The sub test case name isn't limited Ruby's constant name rule. You can
|
|
1126
1143
|
specify the sub test case name in free form.
|
|
@@ -1138,16 +1155,16 @@ It's a bug fix release.
|
|
|
1138
1155
|
### Improvements
|
|
1139
1156
|
|
|
1140
1157
|
* Supported installing from GitHub.
|
|
1141
|
-
[GitHub#29] [Suggested by Michael Grosser]
|
|
1158
|
+
[GitHub#29](https://github.com/test-unit/test-unit/issues/29) [Suggested by Michael Grosser]
|
|
1142
1159
|
* Supported ActiveSupport::TestCase.
|
|
1143
|
-
[GitHub#30] [Reported by Michael Grosser]
|
|
1160
|
+
[GitHub#30](https://github.com/test-unit/test-unit/issues/30) [Reported by Michael Grosser]
|
|
1144
1161
|
* [ui][console] Improved multiline falut message display.
|
|
1145
1162
|
|
|
1146
1163
|
### Fixes
|
|
1147
1164
|
|
|
1148
1165
|
* [ui][console] Fixed a bug that expected and actual values are
|
|
1149
1166
|
empty.
|
|
1150
|
-
[GitHub#31][GitHub#33]
|
|
1167
|
+
[GitHub#31](https://github.com/test-unit/test-unit/issues/31)[GitHub#33](https://github.com/test-unit/test-unit/issues/33)
|
|
1151
1168
|
[Reported by Kendall Buchanan][Reported by Mathieu Martin]
|
|
1152
1169
|
[Hinted by Michael Grosser]
|
|
1153
1170
|
* Fixed a bug that .gemspec can't be loaded on LANG=C.
|
|
@@ -1168,7 +1185,7 @@ It's a bug fix release.
|
|
|
1168
1185
|
|
|
1169
1186
|
* Fixed a backward incompatibility of `TestUnitMediator#run_suite`
|
|
1170
1187
|
introduced in 2.4.9.
|
|
1171
|
-
[GitHub#28] [Reported by Vladislav Rassokhin]
|
|
1188
|
+
[GitHub#28](https://github.com/test-unit/test-unit/issues/28) [Reported by Vladislav Rassokhin]
|
|
1172
1189
|
|
|
1173
1190
|
### Thanks
|
|
1174
1191
|
|
|
@@ -1189,7 +1206,7 @@ It's a bug fix release.
|
|
|
1189
1206
|
* Supported showing ASCII-8BIT diff in failure message.
|
|
1190
1207
|
* [ui][console] Supported `ENV["TERM"] == "xterm-256color"` as color
|
|
1191
1208
|
available terminal.
|
|
1192
|
-
[GitHub#26] [Reported by Michael Grosser]
|
|
1209
|
+
[GitHub#26](https://github.com/test-unit/test-unit/issues/26) [Reported by Michael Grosser]
|
|
1193
1210
|
* [ui][console] Supported "-256color" suffix `ENV["TERM"]` terminal
|
|
1194
1211
|
as 256 color supported terminal.
|
|
1195
1212
|
|
|
@@ -1200,7 +1217,7 @@ It's a bug fix release.
|
|
|
1200
1217
|
says.
|
|
1201
1218
|
[RubyForge#29554] [Reported by Bob Saveland]
|
|
1202
1219
|
* Added missing `require "test/unit/diff"`.
|
|
1203
|
-
[GitHub#25] [Reported by Stephan Kulow]
|
|
1220
|
+
[GitHub#25](https://github.com/test-unit/test-unit/issues/25) [Reported by Stephan Kulow]
|
|
1204
1221
|
|
|
1205
1222
|
### Thanks
|
|
1206
1223
|
|
data/lib/test/unit/attribute.rb
CHANGED
|
@@ -199,7 +199,7 @@ module Test
|
|
|
199
199
|
ancestor.is_a?(Class) and
|
|
200
200
|
ancestor < Test::Unit::Attribute
|
|
201
201
|
end
|
|
202
|
-
return nil if @
|
|
202
|
+
return nil if @cached_parent_test_case.nil?
|
|
203
203
|
|
|
204
204
|
@cached_parent_test_case.find_attribute(method_name, name, options)
|
|
205
205
|
end
|
|
@@ -126,6 +126,7 @@ module Test
|
|
|
126
126
|
guess_available_colors_from_vte_version_env ||
|
|
127
127
|
guess_available_colors_from_colorterm_env ||
|
|
128
128
|
guess_available_colors_from_term_env ||
|
|
129
|
+
guess_available_colors_from_github_actions_env ||
|
|
129
130
|
8
|
|
130
131
|
end
|
|
131
132
|
|
|
@@ -157,13 +158,21 @@ module Test
|
|
|
157
158
|
def guess_available_colors_from_term_env
|
|
158
159
|
case ENV["TERM"]
|
|
159
160
|
when /[+-]direct/
|
|
160
|
-
2**24
|
|
161
|
+
2 ** 24
|
|
161
162
|
when TERM_256
|
|
162
163
|
256
|
|
163
164
|
else
|
|
164
165
|
nil
|
|
165
166
|
end
|
|
166
167
|
end
|
|
168
|
+
|
|
169
|
+
def guess_available_colors_from_github_actions_env
|
|
170
|
+
if ENV["GITHUB_ACTIONS"] == "true"
|
|
171
|
+
2 ** 24
|
|
172
|
+
else
|
|
173
|
+
nil
|
|
174
|
+
end
|
|
175
|
+
end
|
|
167
176
|
end
|
|
168
177
|
|
|
169
178
|
def initialize(scheme_spec)
|
data/lib/test/unit/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: test-unit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.
|
|
4
|
+
version: 3.5.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kouhei Sutou
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2022-
|
|
12
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: power_assert
|