test-unit 3.1.5 → 3.6.1
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 +5 -5
- data/BSDL +24 -0
- data/COPYING +41 -41
- data/README.md +24 -17
- data/Rakefile +21 -24
- data/doc/text/getting-started.md +246 -0
- data/doc/text/news.md +797 -56
- data/lib/test/unit/assertion-failed-error.rb +35 -0
- data/lib/test/unit/assertions.rb +542 -220
- data/lib/test/unit/attribute.rb +78 -4
- data/lib/test/unit/auto-runner-loader.rb +17 -0
- data/lib/test/unit/autorunner.rb +175 -78
- data/lib/test/unit/code-snippet-fetcher.rb +7 -7
- data/lib/test/unit/collector/descendant.rb +1 -0
- data/lib/test/unit/collector/dir.rb +4 -2
- data/lib/test/unit/collector/load.rb +25 -15
- data/lib/test/unit/collector/objectspace.rb +1 -0
- data/lib/test/unit/collector.rb +31 -0
- data/lib/test/unit/color-scheme.rb +29 -2
- data/lib/test/unit/data-sets.rb +127 -0
- data/lib/test/unit/data.rb +121 -12
- data/lib/test/unit/diff.rb +10 -11
- data/lib/test/unit/fixture.rb +77 -27
- data/lib/test/unit/notification.rb +9 -7
- data/lib/test/unit/omission.rb +34 -31
- data/lib/test/unit/pending.rb +12 -11
- data/lib/test/unit/priority.rb +7 -5
- data/lib/test/unit/runner/console.rb +20 -1
- data/lib/test/unit/test-suite-creator.rb +30 -9
- data/lib/test/unit/testcase.rb +349 -196
- data/lib/test/unit/testresult.rb +7 -0
- data/lib/test/unit/testsuite.rb +1 -1
- data/lib/test/unit/ui/console/testrunner.rb +171 -60
- data/lib/test/unit/ui/emacs/testrunner.rb +5 -5
- data/lib/test/unit/ui/testrunnermediator.rb +9 -7
- data/lib/test/unit/util/backtracefilter.rb +17 -5
- data/lib/test/unit/util/memory-usage.rb +47 -0
- data/lib/test/unit/util/observable.rb +2 -2
- data/lib/test/unit/util/output.rb +5 -4
- data/lib/test/unit/util/procwrapper.rb +4 -4
- data/lib/test/unit/version.rb +1 -1
- data/lib/test/unit/warning.rb +3 -0
- data/lib/test/unit.rb +177 -161
- data/lib/test-unit.rb +2 -17
- metadata +20 -94
- data/GPL +0 -339
- data/LGPL +0 -502
- data/test/collector/test-descendant.rb +0 -178
- data/test/collector/test-load.rb +0 -442
- data/test/collector/test_dir.rb +0 -406
- data/test/collector/test_objectspace.rb +0 -100
- data/test/fixtures/header-label.csv +0 -3
- data/test/fixtures/header-label.tsv +0 -3
- data/test/fixtures/header.csv +0 -3
- data/test/fixtures/header.tsv +0 -3
- data/test/fixtures/no-header.csv +0 -2
- data/test/fixtures/no-header.tsv +0 -2
- data/test/fixtures/plus.csv +0 -3
- data/test/run-test.rb +0 -22
- data/test/test-assertions.rb +0 -2157
- data/test/test-attribute-matcher.rb +0 -38
- data/test/test-attribute.rb +0 -123
- data/test/test-code-snippet.rb +0 -37
- data/test/test-color-scheme.rb +0 -82
- data/test/test-color.rb +0 -47
- data/test/test-data.rb +0 -281
- data/test/test-diff.rb +0 -518
- data/test/test-emacs-runner.rb +0 -60
- data/test/test-error.rb +0 -26
- data/test/test-failure.rb +0 -33
- data/test/test-fault-location-detector.rb +0 -163
- data/test/test-fixture.rb +0 -659
- data/test/test-notification.rb +0 -33
- data/test/test-omission.rb +0 -81
- data/test/test-pending.rb +0 -70
- data/test/test-priority.rb +0 -173
- data/test/test-test-case.rb +0 -1171
- data/test/test-test-result.rb +0 -113
- data/test/test-test-suite-creator.rb +0 -97
- data/test/test-test-suite.rb +0 -150
- data/test/testunit-test-util.rb +0 -31
- data/test/ui/test_testrunmediator.rb +0 -20
- data/test/util/test-method-owner-finder.rb +0 -38
- data/test/util/test-output.rb +0 -11
- data/test/util/test_backtracefilter.rb +0 -41
- data/test/util/test_observable.rb +0 -102
- data/test/util/test_procwrapper.rb +0 -36
data/doc/text/news.md
CHANGED
@@ -1,5 +1,746 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 3.6.1 - 2023-06-25 {#version-3-6-1}
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* collector: load: Improved performance when a large number of test
|
8
|
+
files exist.
|
9
|
+
[GH-232][https://github.com/test-unit/test-unit/issues/232]
|
10
|
+
[Patch by akira yamada]
|
11
|
+
|
12
|
+
### Thanks
|
13
|
+
|
14
|
+
* akira yamada
|
15
|
+
|
16
|
+
## 3.6.0 - 2023-05-25 {#version-3-6-0}
|
17
|
+
|
18
|
+
### Improvements
|
19
|
+
|
20
|
+
* UI: console: Use `--progress-style=fault-only` with non-tty output
|
21
|
+
by default.
|
22
|
+
|
23
|
+
## 3.5.9 - 2023-05-25 {#version-3-5-9}
|
24
|
+
|
25
|
+
### Improvements
|
26
|
+
|
27
|
+
* UI: console: Use `--progress-style=mark` with `--verbose=verbose`
|
28
|
+
by default.
|
29
|
+
|
30
|
+
## 3.5.8 - 2023-05-12 {#version-3-5-8}
|
31
|
+
|
32
|
+
### Improvements
|
33
|
+
|
34
|
+
* doc: Improved document for multi Ractor mode.
|
35
|
+
[GH-226][https://github.com/test-unit/test-unit/issues/226]
|
36
|
+
[Patch by Luke Gruber]
|
37
|
+
|
38
|
+
* doc: Updated minitest's URL.
|
39
|
+
[GH-228][https://github.com/test-unit/test-unit/issues/228]
|
40
|
+
[Patch by Koichi ITO]
|
41
|
+
|
42
|
+
* UI: console: Added `--progress-style` option.
|
43
|
+
|
44
|
+
* UI: console: Compacted `--verbose=important-only` output..
|
45
|
+
|
46
|
+
* UI: console: Changed the default output level to `important-only`
|
47
|
+
on GitHub Actions.
|
48
|
+
|
49
|
+
### Thanks
|
50
|
+
|
51
|
+
* Luke Gruber
|
52
|
+
|
53
|
+
* Koichi ITO
|
54
|
+
|
55
|
+
## 3.5.7 - 2022-12-15 {#version-3-5-7}
|
56
|
+
|
57
|
+
### Improvements
|
58
|
+
|
59
|
+
* [UI][console]: Changed to use color escape sequence for each line
|
60
|
+
instead of each output that may consist with multiple lines.
|
61
|
+
|
62
|
+
## 3.5.6 - 2022-12-15 {#version-3-5-6}
|
63
|
+
|
64
|
+
### Improvements
|
65
|
+
|
66
|
+
* [UI][console]: Enabled 256 colors output on GitHub Actions by default.
|
67
|
+
|
68
|
+
## 3.5.5 - 2022-10-04 {#version-3-5-5}
|
69
|
+
|
70
|
+
### Fixes
|
71
|
+
|
72
|
+
* Suppressed a warning.
|
73
|
+
[GitHub#219](https://github.com/test-unit/test-unit/issues/219)[Patch by Kenichi Kamiya]
|
74
|
+
|
75
|
+
### Thanks
|
76
|
+
|
77
|
+
* Kenichi Kamiya
|
78
|
+
|
79
|
+
## 3.5.4 - 2022-10-04 {#version-3-5-4}
|
80
|
+
|
81
|
+
### Improvements
|
82
|
+
|
83
|
+
* Don't raise an error on `Test::Unit::TestCase.clone`.
|
84
|
+
[GitHub#210](https://github.com/test-unit/test-unit/issues/210)[Reported by David Marchaland]
|
85
|
+
|
86
|
+
* Added support for `BigDeciaml` in `assert_in_delta` family.
|
87
|
+
[GitHub#218](https://github.com/test-unit/test-unit/issues/218)[Patch by Kenta Murata]
|
88
|
+
|
89
|
+
### Thanks
|
90
|
+
|
91
|
+
* David Marchaland
|
92
|
+
|
93
|
+
* Kenta Murata
|
94
|
+
|
95
|
+
## 3.5.3 - 2021-12-20 {#version-3-5-3}
|
96
|
+
|
97
|
+
### Improvements
|
98
|
+
|
99
|
+
* Made how to sub test case generation customizable.
|
100
|
+
[GitHub#207](https://github.com/test-unit/test-unit/issues/207)[Patch by Akira Matsuda]
|
101
|
+
|
102
|
+
### Thanks
|
103
|
+
|
104
|
+
* Akira Matsuda
|
105
|
+
|
106
|
+
## 3.5.2 - 2021-12-10 {#version-3-5-2}
|
107
|
+
|
108
|
+
### Improvements
|
109
|
+
|
110
|
+
* Required `fileutils` lazy.
|
111
|
+
[GitHub#206](https://github.com/test-unit/test-unit/issues/206)[Patch by David Rodríguez]
|
112
|
+
|
113
|
+
### Thanks
|
114
|
+
|
115
|
+
* David Rodríguez
|
116
|
+
|
117
|
+
## 3.5.1 - 2021-11-08 {#version-3-5-1}
|
118
|
+
|
119
|
+
### Fixes
|
120
|
+
|
121
|
+
* Fixed a bug that `keep: true` is ignored when data set is
|
122
|
+
generated by block. [Reported by Kenta Murata]
|
123
|
+
|
124
|
+
### Thanks
|
125
|
+
|
126
|
+
* Kenta Murata
|
127
|
+
|
128
|
+
## 3.5.0 - 2021-10-18 {#version-3-5-0}
|
129
|
+
|
130
|
+
### Fixes
|
131
|
+
|
132
|
+
* Fixed a bug that `keep: true` is ignored when the last `data`
|
133
|
+
doesn't have `keep: true`.
|
134
|
+
|
135
|
+
## 3.4.9 - 2021-10-18 {#version-3-4-9}
|
136
|
+
|
137
|
+
### Improvements
|
138
|
+
|
139
|
+
* Added support for labeling each variable values by using `Hash`.
|
140
|
+
|
141
|
+
## 3.4.8 - 2021-10-11 {#version-3-4-8}
|
142
|
+
|
143
|
+
### Improvements
|
144
|
+
|
145
|
+
* Added support for omitting Ractor tests on Ruby 2.7 or earlier
|
146
|
+
automatically.
|
147
|
+
|
148
|
+
## 3.4.7 - 2021-09-14 {#version-3-4-7}
|
149
|
+
|
150
|
+
### Fixes
|
151
|
+
|
152
|
+
* Suppressed a warning on Ruby 2.
|
153
|
+
[GitHub#205](https://github.com/test-unit/test-unit/issues/205)[Patch by Kenichi Kamiya]
|
154
|
+
|
155
|
+
### Thanks
|
156
|
+
|
157
|
+
* Kenichi Kamiya
|
158
|
+
|
159
|
+
## 3.4.6 - 2021-09-11 {#version-3-4-6}
|
160
|
+
|
161
|
+
### Improvements
|
162
|
+
|
163
|
+
* Added support for tests that use Ractor. Use
|
164
|
+
`Test::Unit::TestCase.ractor` to declare that these tests use
|
165
|
+
Ractor.
|
166
|
+
|
167
|
+
* Added `--debug-on-failure` option.
|
168
|
+
|
169
|
+
## 3.4.5 - 2021-09-04 {#version-3-4-5}
|
170
|
+
|
171
|
+
### Improvements
|
172
|
+
|
173
|
+
* Added more metadata to gemspec.
|
174
|
+
[GitHub#183](https://github.com/test-unit/test-unit/issues/183)[Patch by Kenichi Kamiya]
|
175
|
+
|
176
|
+
* Removed needless files from gem.
|
177
|
+
[GitHub#184](https://github.com/test-unit/test-unit/issues/184)[Patch by Kenichi Kamiya]
|
178
|
+
|
179
|
+
* Updated documents.
|
180
|
+
[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)
|
181
|
+
[GitHub#201](https://github.com/test-unit/test-unit/issues/201)[Patch by Kenichi Kamiya]
|
182
|
+
|
183
|
+
* Added `assert_nothing_leaked_memory`.
|
184
|
+
|
185
|
+
### Fixes
|
186
|
+
|
187
|
+
* Fixed typos in documents.
|
188
|
+
[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]
|
189
|
+
|
190
|
+
### Thanks
|
191
|
+
|
192
|
+
* Kenichi Kamiya
|
193
|
+
|
194
|
+
## 3.4.4 - 2021-06-04 {#version-3-4-4}
|
195
|
+
|
196
|
+
### Improvements
|
197
|
+
|
198
|
+
* Renamed `assert_all?` to `assert_all`. `assert_all?` is deprecated
|
199
|
+
but is available.
|
200
|
+
|
201
|
+
## 3.4.3 - 2021-06-04 {#version-3-4-3}
|
202
|
+
|
203
|
+
### Improvements
|
204
|
+
|
205
|
+
* Stopped to change result value of `Test::Unit::TestCase#include`.
|
206
|
+
|
207
|
+
* Added `assert_all?`.
|
208
|
+
|
209
|
+
* Added support for `assert_raise_with_message`.
|
210
|
+
|
211
|
+
## 3.4.2 - 2021-05-30 {#version-3-4-2}
|
212
|
+
|
213
|
+
### Improvements
|
214
|
+
|
215
|
+
* [UI][console]: Improved diff readability for no color
|
216
|
+
case. Character based diff marks are always showed.
|
217
|
+
|
218
|
+
## 3.4.1 - 2021-04-19 {#version-3-4-1}
|
219
|
+
|
220
|
+
### Fixes
|
221
|
+
|
222
|
+
* Fixed a bug that `setup`/`cleanup`/`teardown` with block may be
|
223
|
+
overwritten by another `setup`/`cleanup`/`teardown` with
|
224
|
+
block. It's caused only with Ruby 2.6 or earlier.
|
225
|
+
[GitHub#179](https://github.com/test-unit/test-unit/issues/179)[Reported by akira yamada]
|
226
|
+
|
227
|
+
### Thanks
|
228
|
+
|
229
|
+
* akira yamada
|
230
|
+
|
231
|
+
## 3.4.0 - 2021-01-30 {#version-3-4-0}
|
232
|
+
|
233
|
+
### Improvements
|
234
|
+
|
235
|
+
* Enable deprecated warnings by default.
|
236
|
+
|
237
|
+
## 3.3.9 - 2020-12-29 {#version-3-3-9}
|
238
|
+
|
239
|
+
### Improvements
|
240
|
+
|
241
|
+
* `assert_not_match`: Add support for `String` as pattern.
|
242
|
+
[GitHub#178](https://github.com/test-unit/test-unit/issues/178)[Patch by David Rodríguez]
|
243
|
+
|
244
|
+
### Thanks
|
245
|
+
|
246
|
+
* David Rodríguez
|
247
|
+
|
248
|
+
## 3.3.8 - 2020-12-25 {#version-3-3-8}
|
249
|
+
|
250
|
+
### Improvements
|
251
|
+
|
252
|
+
* [UI][console]: Removed reverse mode because Ruby 3.0 reverts
|
253
|
+
reverse backtrace.
|
254
|
+
|
255
|
+
## 3.3.7 - 2020-11-18 {#version-3-3-7}
|
256
|
+
|
257
|
+
### Improvements
|
258
|
+
|
259
|
+
* Improved TruffleRuby support.
|
260
|
+
[GitHub#171](https://github.com/test-unit/test-unit/issues/171)[Reported by Benoit Daloze]
|
261
|
+
|
262
|
+
* Removed needless `to_sym`.
|
263
|
+
[GitHub#177](https://github.com/test-unit/test-unit/issues/177)[Patch by icm7216]
|
264
|
+
|
265
|
+
* `assert_raise`: Added backtrace for actual error.
|
266
|
+
|
267
|
+
* Improved terminal color availability detection.
|
268
|
+
[GitHub#175](https://github.com/test-unit/test-unit/issues/175)[Patch by nicholas a. evans]
|
269
|
+
|
270
|
+
* Changed license to the new Ruby's.
|
271
|
+
[GitHub#174](https://github.com/test-unit/test-unit/issues/174)
|
272
|
+
|
273
|
+
### Fixes
|
274
|
+
|
275
|
+
* Fixed a typo in `--help` output:
|
276
|
+
[GitHub#176](https://github.com/test-unit/test-unit/issues/176)[Patch by icm7216]
|
277
|
+
|
278
|
+
### Thanks
|
279
|
+
|
280
|
+
* Benoit Daloze
|
281
|
+
|
282
|
+
* icm7216
|
283
|
+
|
284
|
+
* nicholas a. evans
|
285
|
+
|
286
|
+
## 3.3.6 - 2020-06-10 {#version-3-3-6}
|
287
|
+
|
288
|
+
### Improvements
|
289
|
+
|
290
|
+
* `name`, `--ignore-name`:
|
291
|
+
|
292
|
+
* Added support for regular expression options.
|
293
|
+
|
294
|
+
* Added support for matching with class name in exact match mode.
|
295
|
+
[Reported by Jun Aruga]
|
296
|
+
|
297
|
+
* Updated ruby-talk mailing list information
|
298
|
+
[GitHub#168](https://github.com/test-unit/test-unit/issues/168)[Patch by Chris Kampmeier]
|
299
|
+
|
300
|
+
### Thanks
|
301
|
+
|
302
|
+
* Chris Kampmeier
|
303
|
+
|
304
|
+
* Jun Aruga
|
305
|
+
|
306
|
+
## 3.3.5 - 2020-01-10 {#version-3-3-5}
|
307
|
+
|
308
|
+
### Improvements
|
309
|
+
|
310
|
+
* Improved code snippet showing with different default external encoding.
|
311
|
+
[GitHub#166](https://github.com/test-unit/test-unit/issues/166)[Patch by Yuta Iwama]
|
312
|
+
|
313
|
+
### Thanks
|
314
|
+
|
315
|
+
* Yuta Iwama
|
316
|
+
|
317
|
+
## 3.3.4 - 2019-09-30 {#version-3-3-4}
|
318
|
+
|
319
|
+
### Improvements
|
320
|
+
|
321
|
+
* Converted markup format to Markdown from RDoc.
|
322
|
+
[GitHub#164](https://github.com/test-unit/test-unit/issues/164)[Patch by OGAWA KenIchi]
|
323
|
+
|
324
|
+
* test: Stopped to depend on `Time#inspect` format.
|
325
|
+
[GitHub#165](https://github.com/test-unit/test-unit/issues/165)[Reported by Benoit Daloze]
|
326
|
+
|
327
|
+
### Thanks
|
328
|
+
|
329
|
+
* OGAWA KenIchi
|
330
|
+
|
331
|
+
* Benoit Daloze
|
332
|
+
|
333
|
+
## 3.3.3 - 2019-05-10 {#version-3-3-3}
|
334
|
+
|
335
|
+
### Fixed
|
336
|
+
|
337
|
+
* Fixed a bug that priority mode with test case name that uses
|
338
|
+
special characters such as `?` can't be used on Windows.
|
339
|
+
|
340
|
+
## 3.3.2 - 2019-04-11 {#version-3-3-2}
|
341
|
+
|
342
|
+
### Fixes
|
343
|
+
|
344
|
+
* Fixed a bug that `Test::Unit::Collector::Load` doesn't load test
|
345
|
+
files under sub directories when these files have the same base
|
346
|
+
name as test files in upper directories.
|
347
|
+
[Reported by Kenta Murata]
|
348
|
+
|
349
|
+
### Thanks
|
350
|
+
|
351
|
+
* Kenta Murata
|
352
|
+
|
353
|
+
## 3.3.1 - 2019-03-27 {#version-3-3-1}
|
354
|
+
|
355
|
+
### Improvements
|
356
|
+
|
357
|
+
* Added support for `Test::Unit::AssertionFailedError#user_message`
|
358
|
+
for not only `assert_equal` and `assert_raise` but also all
|
359
|
+
assertions.
|
360
|
+
[GitHub#162](https://github.com/test-unit/test-unit/issues/162)[Reported by xgraffm]
|
361
|
+
|
362
|
+
### Thanks
|
363
|
+
|
364
|
+
* xgraffm
|
365
|
+
|
366
|
+
## 3.3.0 - 2019-01-23 {#version-3-3-0}
|
367
|
+
|
368
|
+
### Improvements
|
369
|
+
|
370
|
+
* Added support for auto test run when all tests are defined in
|
371
|
+
modules.
|
372
|
+
|
373
|
+
* Added support for defining methods to test case class in multiple
|
374
|
+
threads.
|
375
|
+
[GitHub#159](https://github.com/test-unit/test-unit/issues/159)[Reported by Charles Oliver Nutter]
|
376
|
+
|
377
|
+
* Suppressed warnings on Ruby 2.5.
|
378
|
+
[GitHub#160](https://github.com/test-unit/test-unit/issues/160)[Reported by Daniel Berger]
|
379
|
+
|
380
|
+
* Suppressed warnings on Ruby 2.7.
|
381
|
+
|
382
|
+
### Fixes
|
383
|
+
|
384
|
+
* Fixed a code snippet fetch failure when source code isn't UTF-8
|
385
|
+
and the default external encoding is set to not UTF-8.
|
386
|
+
[GitHub#161](https://github.com/test-unit/test-unit/issues/161)[Reported by masa kunikata]
|
387
|
+
|
388
|
+
### Thanks
|
389
|
+
|
390
|
+
* Charles Oliver Nutter
|
391
|
+
|
392
|
+
* Daniel Berger
|
393
|
+
|
394
|
+
* masa kunikata
|
395
|
+
|
396
|
+
## 3.2.9 - 2018-12-01 {#version-3-2-9}
|
397
|
+
|
398
|
+
### Improvements
|
399
|
+
|
400
|
+
* Added support for data generation by method. `data_#{test_name}`
|
401
|
+
is called to generate data for `test_name` test.
|
402
|
+
|
403
|
+
* Added support for data matrix generation.
|
404
|
+
|
405
|
+
Example:
|
406
|
+
|
407
|
+
```ruby
|
408
|
+
data(:a, [0, 1, 2])
|
409
|
+
data(:b, [:x, :y])
|
410
|
+
def test_data(data)
|
411
|
+
end
|
412
|
+
```
|
413
|
+
|
414
|
+
This example generates the following data matrix:
|
415
|
+
|
416
|
+
* label: `"a: 0, b: :x"`, data: `{a: 0, b: :x}`
|
417
|
+
* label: `"a: 0, b: :y"`, data: `{a: 0, b: :y}`
|
418
|
+
* label: `"a: 1, b: :x"`, data: `{a: 1, b: :x}`
|
419
|
+
* label: `"a: 1, b: :y"`, data: `{a: 1, b: :y}`
|
420
|
+
* label: `"a: 2, b: :x"`, data: `{a: 2, b: :x}`
|
421
|
+
* label: `"a: 2, b: :y"`, data: `{a: 2, b: :y}`
|
422
|
+
|
423
|
+
* Added `Test::Unit::TestCase#data` that returns the current data.
|
424
|
+
|
425
|
+
* Added support for using test method that doesn't have no
|
426
|
+
parameters as data driven test.
|
427
|
+
|
428
|
+
Example:
|
429
|
+
|
430
|
+
```ruby
|
431
|
+
data("label", :value)
|
432
|
+
def test_data # Available since this release
|
433
|
+
p data # :value
|
434
|
+
end
|
435
|
+
```
|
436
|
+
|
437
|
+
* Added support for `:keep` option to `Test::Unit::TestCase.data`.
|
438
|
+
|
439
|
+
* Added support for `:group` option to
|
440
|
+
`Test::Unit::TestCase.data`. It's useful to generate multiple data
|
441
|
+
matrix groups.
|
442
|
+
|
443
|
+
```ruby
|
444
|
+
# Group1
|
445
|
+
data(:a, [0, 1, 2], group: :g1)
|
446
|
+
data(:b, [:x, :y], group: :g1)
|
447
|
+
# Group2
|
448
|
+
data(:a, [:x, :y], group: :g2)
|
449
|
+
data(:c, [-1, -2], group: :g2)
|
450
|
+
def test_data(data)
|
451
|
+
end
|
452
|
+
```
|
453
|
+
|
454
|
+
This example generates the following data matrix:
|
455
|
+
|
456
|
+
* label: `"group: :g1, a: 0, b: :x"`, data: `{a: 0, b: :x}`
|
457
|
+
* label: `"group: :g1, a: 0, b: :y"`, data: `{a: 0, b: :y}`
|
458
|
+
* label: `"group: :g1, a: 1, b: :x"`, data: `{a: 1, b: :x}`
|
459
|
+
* label: `"group: :g1, a: 1, b: :y"`, data: `{a: 1, b: :y}`
|
460
|
+
* label: `"group: :g1, a: 2, b: :x"`, data: `{a: 2, b: :x}`
|
461
|
+
* label: `"group: :g1, a: 2, b: :y"`, data: `{a: 2, b: :y}`
|
462
|
+
* label: `"group: :g2, a: :x, b: -1"`, data: `{a: :x, b: -1}`
|
463
|
+
* label: `"group: :g2, a: :x, b: -2"`, data: `{a: :x, b: -2}`
|
464
|
+
* label: `"group: :g2, a: :y, b: -1"`, data: `{a: :y, b: -1}`
|
465
|
+
* label: `"group: :g2, a: :y, b: -2"`, data: `{a: :y, b: -2}`
|
466
|
+
|
467
|
+
## 3.2.8 - 2018-05-13 {#version-3-2-8}
|
468
|
+
|
469
|
+
### Improvements
|
470
|
+
|
471
|
+
* [UI][console]: Changed to put code snippet before backtrace on
|
472
|
+
reverse mode.
|
473
|
+
|
474
|
+
## 3.2.7 - 2017-12-12 {#version-3-2-7}
|
475
|
+
|
476
|
+
### Improvements
|
477
|
+
|
478
|
+
* Added source code link to gemspec.
|
479
|
+
[GitHub#157](https://github.com/test-unit/test-unit/issues/157)[Patch by Grey Baker]
|
480
|
+
|
481
|
+
* Changed to use SVG image for badges in README.
|
482
|
+
[GitHub#158](https://github.com/test-unit/test-unit/issues/158)[Patch by Olle Jonsson]
|
483
|
+
|
484
|
+
* [UI][console]: Added `--reverse-output` option to output fault
|
485
|
+
details in reverse like Ruby 2.5. It's enabled by default only for
|
486
|
+
tty output.
|
487
|
+
|
488
|
+
### Fixes
|
489
|
+
|
490
|
+
* Fixed a typo.
|
491
|
+
[GitHub#156](https://github.com/test-unit/test-unit/issues/156)[Patch by masa kunikata]
|
492
|
+
|
493
|
+
* [UI][console]: Fixed a bug that broken align in verbose mode.
|
494
|
+
|
495
|
+
### Thanks
|
496
|
+
|
497
|
+
* masa kunikata
|
498
|
+
|
499
|
+
* Grey Baker
|
500
|
+
|
501
|
+
* Olle Jonsson
|
502
|
+
|
503
|
+
## 3.2.6 - 2017-09-21 {#version-3-2-6}
|
504
|
+
|
505
|
+
### Improvements
|
506
|
+
|
507
|
+
* Changed test file require failure to error from omission.
|
508
|
+
[GitHub#154](https://github.com/test-unit/test-unit/issues/154)[Patch by naofumi-fujii]
|
509
|
+
|
510
|
+
### Thanks
|
511
|
+
|
512
|
+
* naofumi-fujii
|
513
|
+
|
514
|
+
## 3.2.5 - 2017-06-24 {#version-3-2-5}
|
515
|
+
|
516
|
+
### Improvements
|
517
|
+
|
518
|
+
* Supported `--enable-frozen-string-literal` `ruby` option.
|
519
|
+
[GitHub#149](https://github.com/test-unit/test-unit/issues/149)[Reported by Pat Allan]
|
520
|
+
|
521
|
+
### Thanks
|
522
|
+
|
523
|
+
* Pat Allan
|
524
|
+
|
525
|
+
## 3.2.4 - 2017-05-23 {#version-3-2-4}
|
526
|
+
|
527
|
+
### Improvements
|
528
|
+
|
529
|
+
* Updated tests for Ruby 2.4. [GitHUb#136][Patch by Kazuki Tsujimoto]
|
530
|
+
|
531
|
+
* Supported power\_assert 1.0.0. [GitHub#137](https://github.com/test-unit/test-unit/issues/137)[Patch by Kazuki Tsujimoto]
|
532
|
+
|
533
|
+
* Added the getting started document.
|
534
|
+
[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]
|
535
|
+
|
536
|
+
* Added the document for `attribute`.
|
537
|
+
[GitHub#143](https://github.com/test-unit/test-unit/issues/143)[Patch by Fumiaki MATSUSHIMA]
|
538
|
+
|
539
|
+
* Improved a link for GitHub. [GitHub#144](https://github.com/test-unit/test-unit/issues/144)[Patch by rochefort]
|
540
|
+
|
541
|
+
* Updated `.travis.yml`. [GitHub#145](https://github.com/test-unit/test-unit/issues/145)[Patch by Jun Aruga]
|
542
|
+
|
543
|
+
### Fixes
|
544
|
+
|
545
|
+
* Fixed a contributor name. [GitHub#131](https://github.com/test-unit/test-unit/issues/131)[Patch by Akira Matsuda]
|
546
|
+
|
547
|
+
* Fixed typos in document. [GitHub#132](https://github.com/test-unit/test-unit/issues/132)[Patch by Akira Matsuda]
|
548
|
+
|
549
|
+
* Fixed typos in document. [GitHub#134](https://github.com/test-unit/test-unit/issues/134)[Patch by Yuji Yaginuma]
|
550
|
+
|
551
|
+
* Fixed a bug that data label with "(" isn't supported.
|
552
|
+
[GitHub#135](https://github.com/test-unit/test-unit/issues/135)[Reported by Kazuki Tsujimoto]
|
553
|
+
|
554
|
+
* Fixed assertion message in English.
|
555
|
+
[GitHub#133](https://github.com/test-unit/test-unit/issues/133)[Reported by Khalil Fazal]
|
556
|
+
|
557
|
+
* Fixed a typo in typo fix. [GitHub#138](https://github.com/test-unit/test-unit/issues/138)[Patch by kami]
|
558
|
+
|
559
|
+
* Fixed a bug that target location finder may return wrong
|
560
|
+
location. [GitHub#146](https://github.com/test-unit/test-unit/issues/146)[Patch by Yuki Ito]
|
561
|
+
|
562
|
+
* Fixed a bug that `--no-show-detail-immediately` raises an error.
|
563
|
+
[GitHub#147](https://github.com/test-unit/test-unit/issues/147)[Reported by MSP-Greg]
|
564
|
+
|
565
|
+
### Thanks
|
566
|
+
|
567
|
+
* Akira Matsuda
|
568
|
+
|
569
|
+
* Yuji Yaginuma
|
570
|
+
|
571
|
+
* Kazuki Tsujimoto
|
572
|
+
|
573
|
+
* Khalil Fazal
|
574
|
+
|
575
|
+
* kami
|
576
|
+
|
577
|
+
* Hiroyuki Sato
|
578
|
+
|
579
|
+
* Fumiaki MATSUSHIMA
|
580
|
+
|
581
|
+
* rochefort
|
582
|
+
|
583
|
+
* Jun Aruga
|
584
|
+
|
585
|
+
* Yuki Ito
|
586
|
+
|
587
|
+
* MSP-Greg
|
588
|
+
|
589
|
+
## 3.2.3 - 2016-11-25 {#version-3-2-3}
|
590
|
+
|
591
|
+
### Fixes
|
592
|
+
|
593
|
+
* Fixed a bug that `--order` isn't applied.
|
594
|
+
[GitHub#129](https://github.com/test-unit/test-unit/issues/129)[Reported by Vít Ondruch]
|
595
|
+
|
596
|
+
### Thanks
|
597
|
+
|
598
|
+
* Vít Ondruch
|
599
|
+
|
600
|
+
## 3.2.2 - 2016-11-02 {#version-3-2-2}
|
601
|
+
|
602
|
+
### Improvements
|
603
|
+
|
604
|
+
* Improved Travis CI configuration.
|
605
|
+
[GitHub#123](https://github.com/test-unit/test-unit/issues/123)[Patch by Ryunosuke Sato]
|
606
|
+
|
607
|
+
* Supported Java native exception.
|
608
|
+
[GitHub#126](https://github.com/test-unit/test-unit/issues/126)[Reported by Bob Saveland]
|
609
|
+
|
610
|
+
### Fixes
|
611
|
+
|
612
|
+
* doc: Fixed markup. [GitHub#127](https://github.com/test-unit/test-unit/issues/127)[Patch by Tomohiro Hashidate]
|
613
|
+
|
614
|
+
* Fixed a bug that `--location=LINE` may not detect a test when
|
615
|
+
fixtures are defined before any tests:
|
616
|
+
|
617
|
+
1 class MyTestCase < Test::Unit::TestCase
|
618
|
+
2 setup do
|
619
|
+
3 end
|
620
|
+
4
|
621
|
+
5 test "xxx" do
|
622
|
+
6 end
|
623
|
+
7 end
|
624
|
+
|
625
|
+
`--location=5` couldn't find the `xxx` test.
|
626
|
+
|
627
|
+
[Reported by Ryota Sasabe]
|
628
|
+
|
629
|
+
### Thanks
|
630
|
+
|
631
|
+
* Ryunosuke Sato
|
632
|
+
|
633
|
+
* Tomohiro Hashidate
|
634
|
+
|
635
|
+
* Bob Saveland
|
636
|
+
|
637
|
+
* Ryota Sasabe
|
638
|
+
|
639
|
+
## 3.2.1 - 2016-07-19 {#version-3-2-1}
|
640
|
+
|
641
|
+
### Improvements
|
642
|
+
|
643
|
+
* Clarified lib/test/unit/diff.rb license. It's a triple license of
|
644
|
+
the Ruby license, PSF license and LGPLv2.1 or later.
|
645
|
+
[Reported by Luisa Pace]
|
646
|
+
|
647
|
+
* Reported norification when data driven test doesn't have
|
648
|
+
parameter.
|
649
|
+
[GitHub#122](https://github.com/test-unit/test-unit/issues/122)[Reported by Satoshi "Moris" Tagomori]
|
650
|
+
|
651
|
+
### Thanks
|
652
|
+
|
653
|
+
* Luisa Pace
|
654
|
+
|
655
|
+
* Satoshi "Moris" Tagomori
|
656
|
+
|
657
|
+
## 3.2.0 - 2016-06-12 {#version-3-2-0}
|
658
|
+
|
659
|
+
### Improvements
|
660
|
+
|
661
|
+
* Supported rxvt family terminals as color available terminals.
|
662
|
+
[GitHub#121](https://github.com/test-unit/test-unit/issues/121)[Reported by Ippei Kishida]
|
663
|
+
|
664
|
+
### Thanks
|
665
|
+
|
666
|
+
* Ippei Kishida
|
667
|
+
|
668
|
+
## 3.1.9 - 2016-05-20 {#version-3-1-9}
|
669
|
+
|
670
|
+
### Fixes
|
671
|
+
|
672
|
+
* Fixed conflict with test-unit-power_assert.
|
673
|
+
[GitHub#120](https://github.com/test-unit/test-unit/issues/120)[Patch by Kazuki Tsujimoto]
|
674
|
+
|
675
|
+
* Fixed a bug that path in `$LOAD_PATH` may be removed.
|
676
|
+
|
677
|
+
### Thanks
|
678
|
+
|
679
|
+
* Kazuki Tsujimoto
|
680
|
+
|
681
|
+
## 3.1.8 - 2016-03-19 {#version-3-1-8}
|
682
|
+
|
683
|
+
### Improvements
|
684
|
+
|
685
|
+
* Added `--stop-on-failure` command line option. With this option,
|
686
|
+
running test suite is stopped immediately when one test is failed
|
687
|
+
or an error is raised in one test.
|
688
|
+
|
689
|
+
## 3.1.7 - 2016-01-17 {#version-3-1-7}
|
690
|
+
|
691
|
+
### Fixes
|
692
|
+
|
693
|
+
* Added a missing require.
|
694
|
+
|
695
|
+
## 3.1.6 - 2016-01-17 {#version-3-1-6}
|
696
|
+
|
697
|
+
It's a Ruby on Rails integration improvement release.
|
698
|
+
|
699
|
+
### Improvements
|
700
|
+
|
701
|
+
* Filtered backtrace of power\_assert.
|
702
|
+
[GitHub#114](https://github.com/test-unit/test-unit/issues/114)
|
703
|
+
* Improved performance to retrieve test defined location.
|
704
|
+
* Improved performance to run fixtures in a test.
|
705
|
+
* Supported running a test by `yield` in `setup`:
|
706
|
+
|
707
|
+
Before:
|
708
|
+
|
709
|
+
def setup
|
710
|
+
@file = File.open("x")
|
711
|
+
end
|
712
|
+
|
713
|
+
def teardown
|
714
|
+
@file.close
|
715
|
+
end
|
716
|
+
|
717
|
+
After:
|
718
|
+
|
719
|
+
def setup
|
720
|
+
File.open("x") do |file|
|
721
|
+
@file = file
|
722
|
+
yield
|
723
|
+
end
|
724
|
+
end
|
725
|
+
|
726
|
+
* Added `--default-test-path` option that specifies the default path
|
727
|
+
that has tests.
|
728
|
+
* Made auto runner registration more lazily. Auto runner isn't
|
729
|
+
registered automatically until user defines a test. In the
|
730
|
+
previous releases, auto runner is registered automatically when
|
731
|
+
user defines a test case.
|
732
|
+
* Supported specifying a test by location in command line. For
|
733
|
+
example, the following command line runs a test that is defined in
|
734
|
+
/tmp/test_a.rb at line 10:
|
735
|
+
|
736
|
+
% ruby -r test-unit -e run_test /tmp/test_a.rb:10
|
737
|
+
|
738
|
+
### Fixes
|
739
|
+
|
740
|
+
* Fixed a bug that test isn't ran. The test has the same name as
|
741
|
+
data driven test that is defined in parent test case.
|
742
|
+
[GitHub#115](https://github.com/test-unit/test-unit/issues/115)
|
743
|
+
|
3
744
|
## 3.1.5 - 2015-10-09 {#version-3-1-5}
|
4
745
|
|
5
746
|
It's a Rack integration improvement release.
|
@@ -7,8 +748,8 @@ It's a Rack integration improvement release.
|
|
7
748
|
### Improvements
|
8
749
|
|
9
750
|
* Renamed experimental top-level `run` method to `run_test` method
|
10
|
-
|
11
|
-
|
751
|
+
because `run` is conflicted with Rack.
|
752
|
+
[GitHub#32](https://github.com/test-unit/test-unit/issues/32)[GitHub:basecamp/pow#303] [Reported by Yevhen Viktorov]
|
12
753
|
|
13
754
|
### Thanks
|
14
755
|
|
@@ -20,14 +761,14 @@ It's a minor improvement release.
|
|
20
761
|
|
21
762
|
### Improvements
|
22
763
|
|
23
|
-
* Updated sample code. [GitHub#109][Patch by takiy33]
|
24
|
-
* Updated .travis.yml. [GitHub#110][Patch by takiy33]
|
764
|
+
* Updated sample code. [GitHub#109](https://github.com/test-unit/test-unit/issues/109)[Patch by takiy33]
|
765
|
+
* Updated .travis.yml. [GitHub#110](https://github.com/test-unit/test-unit/issues/110)[Patch by takiy33]
|
25
766
|
* document: Added table header in how to document.
|
26
|
-
[GitHub#111][Patch by takiy33]
|
767
|
+
[GitHub#111](https://github.com/test-unit/test-unit/issues/111)[Patch by takiy33]
|
27
768
|
* Removed duplicated code.
|
28
|
-
[GitHub#112][Patch by takiy33]
|
769
|
+
[GitHub#112](https://github.com/test-unit/test-unit/issues/112)[Patch by takiy33]
|
29
770
|
* Removed needless encoding conversion in fetching code snippet.
|
30
|
-
[GitHub#113][Patch by NARUSE, Yui]
|
771
|
+
[GitHub#113](https://github.com/test-unit/test-unit/issues/113)[Patch by NARUSE, Yui]
|
31
772
|
|
32
773
|
### Thanks
|
33
774
|
|
@@ -40,7 +781,7 @@ It's a bug fix release.
|
|
40
781
|
|
41
782
|
### Improvements
|
42
783
|
|
43
|
-
* Removed unused `TODO` file. [GitHub#108][Patch by takiy33]
|
784
|
+
* Removed unused `TODO` file. [GitHub#108](https://github.com/test-unit/test-unit/issues/108)[Patch by takiy33]
|
44
785
|
|
45
786
|
### Fixes
|
46
787
|
|
@@ -95,7 +836,7 @@ It's a bug fix release.
|
|
95
836
|
|
96
837
|
* Fixed a bug that `--location` detects tests not only in sub test
|
97
838
|
case but also parent test case.
|
98
|
-
[GitHub#105][Reported by wanabe]
|
839
|
+
[GitHub#105](https://github.com/test-unit/test-unit/issues/105)[Reported by wanabe]
|
99
840
|
|
100
841
|
### Thanks
|
101
842
|
|
@@ -112,18 +853,18 @@ It's a bug fix release.
|
|
112
853
|
### Fixes
|
113
854
|
|
114
855
|
* Fixed a bug that priority mode can't be used on Windows.
|
115
|
-
[GitHub#95][Reported by Daniel Berger]
|
856
|
+
[GitHub#95](https://github.com/test-unit/test-unit/issues/95)[Reported by Daniel Berger]
|
116
857
|
* Fixed a homepage URL RubyGems spec.
|
117
|
-
[GitHub#96][Patch by Masayoshi Takahashi]
|
118
|
-
supported.) [GitHub#89][Patch by Aaron Stone]
|
858
|
+
[GitHub#96](https://github.com/test-unit/test-unit/issues/96)[Patch by Masayoshi Takahashi]
|
859
|
+
supported.) [GitHub#89](https://github.com/test-unit/test-unit/issues/89)[Patch by Aaron Stone]
|
119
860
|
* Fixed a bug that shutdown hook isn't called when pass throw
|
120
861
|
exception such as `Interrupt` is raised.
|
121
|
-
[GitHub#98][Reported by jeremiahishere.]
|
862
|
+
[GitHub#98](https://github.com/test-unit/test-unit/issues/98)[Reported by jeremiahishere.]
|
122
863
|
* Fixed typos in documents.
|
123
|
-
[GitHub#100][Reported by scivola]
|
124
|
-
[GitHub#102][GitHub#103][Patch by Masafumi Yokoyama]
|
864
|
+
[GitHub#100](https://github.com/test-unit/test-unit/issues/100)[Reported by scivola]
|
865
|
+
[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]
|
125
866
|
* Fixed a bug that the same name test isn't executed in sub test case.
|
126
|
-
[GitHub#104][Reported by wanabe]
|
867
|
+
[GitHub#104](https://github.com/test-unit/test-unit/issues/104)[Reported by wanabe]
|
127
868
|
|
128
869
|
### Thanks
|
129
870
|
|
@@ -141,9 +882,9 @@ It's a release that improves colors.
|
|
141
882
|
### Improvements
|
142
883
|
|
143
884
|
* Added a work around for Ruby 1.8. (Note: Ruby 1.8 isn't
|
144
|
-
supported.) [GitHub#89][Patch by Aaron Stone]
|
885
|
+
supported.) [GitHub#89](https://github.com/test-unit/test-unit/issues/89)[Patch by Aaron Stone]
|
145
886
|
* Supported colorized output on Windows.
|
146
|
-
[GitHub#90][Patch by usa]
|
887
|
+
[GitHub#90](https://github.com/test-unit/test-unit/issues/90)[Patch by usa]
|
147
888
|
* Improved colorized output.
|
148
889
|
http://www.a-k-r.org/d/2014-12.html#a2014_12_27_1
|
149
890
|
[Suggested by Tanaka Akira]
|
@@ -163,7 +904,7 @@ It's a release that supports Ruby 2.2.0 preview2.
|
|
163
904
|
* Added a link for YARD in README.
|
164
905
|
[GitHub:test-unit.github.io#2][Reported by sunnyone]
|
165
906
|
* Added description about "/PATTERN/" style value in auto runner usage.
|
166
|
-
[GitHub#86][Suggested by sunnyone]
|
907
|
+
[GitHub#86](https://github.com/test-unit/test-unit/issues/86)[Suggested by sunnyone]
|
167
908
|
* Supported Ruby 2.2.0 preview2 in `assert_throw` and
|
168
909
|
`assert_nothing_thrown`.
|
169
910
|
|
@@ -171,7 +912,7 @@ It's a release that supports Ruby 2.2.0 preview2.
|
|
171
912
|
|
172
913
|
* Fixed a bug that error report is failed when source encoding and
|
173
914
|
locale encoding are different.
|
174
|
-
[GitHub#87][Reported by scivola]
|
915
|
+
[GitHub#87](https://github.com/test-unit/test-unit/issues/87)[Reported by scivola]
|
175
916
|
|
176
917
|
### Thanks
|
177
918
|
|
@@ -186,7 +927,7 @@ It's a minor update release.
|
|
186
927
|
|
187
928
|
* Fixed a bug that teardown blocks aren't called with sub class to
|
188
929
|
parent class order.
|
189
|
-
[GitHub#85][Reported by TOMITA Masahiro]
|
930
|
+
[GitHub#85](https://github.com/test-unit/test-unit/issues/85)[Reported by TOMITA Masahiro]
|
190
931
|
|
191
932
|
### Thanks
|
192
933
|
|
@@ -199,7 +940,7 @@ It's a minor update release.
|
|
199
940
|
### Improvements
|
200
941
|
|
201
942
|
* Improved code snippet location.
|
202
|
-
[GitHub#84][Patch by Yuki Kurihara]
|
943
|
+
[GitHub#84](https://github.com/test-unit/test-unit/issues/84)[Patch by Yuki Kurihara]
|
203
944
|
|
204
945
|
### Thanks
|
205
946
|
|
@@ -213,7 +954,7 @@ It's a minor update release.
|
|
213
954
|
|
214
955
|
* Fixed a bug that startup/shutdown of parent test case isn't called
|
215
956
|
when the test case includes one or more modules.
|
216
|
-
[GitHub#83][Reported by Chadderton Odwazny]
|
957
|
+
[GitHub#83](https://github.com/test-unit/test-unit/issues/83)[Reported by Chadderton Odwazny]
|
217
958
|
|
218
959
|
### Thanks
|
219
960
|
|
@@ -227,7 +968,7 @@ It's a minor update release.
|
|
227
968
|
|
228
969
|
* Stopped to remove JRuby and Rubinius internal backtrace entries from
|
229
970
|
backtrace on failure/error.
|
230
|
-
[GitHub#82][Patch by Charles Oliver Nutter]
|
971
|
+
[GitHub#82](https://github.com/test-unit/test-unit/issues/82)[Patch by Charles Oliver Nutter]
|
231
972
|
|
232
973
|
### Thanks
|
233
974
|
|
@@ -247,7 +988,7 @@ It's a minor update release.
|
|
247
988
|
### Fixes
|
248
989
|
|
249
990
|
* Fixed markup in document.
|
250
|
-
[GitHub#81][Patch by Masafumi Yokoyama]
|
991
|
+
[GitHub#81](https://github.com/test-unit/test-unit/issues/81)[Patch by Masafumi Yokoyama]
|
251
992
|
|
252
993
|
### Thanks
|
253
994
|
|
@@ -262,18 +1003,18 @@ It's a minor update release.
|
|
262
1003
|
|
263
1004
|
* Supported broken `==` implementation.
|
264
1005
|
`==` implementation should be fixed but it's not work of test-unit. :<
|
265
|
-
[GitHub#71][Reported by Emily]
|
1006
|
+
[GitHub#71](https://github.com/test-unit/test-unit/issues/71)[Reported by Emily]
|
266
1007
|
* [UI][console]: Accepted no message failure.
|
267
|
-
[GitHub#66][Reported by Brian Tatnall]
|
1008
|
+
[GitHub#66](https://github.com/test-unit/test-unit/issues/66)[Reported by Brian Tatnall]
|
268
1009
|
* Updated gem description.
|
269
|
-
[GitHub#74][Patch by Vít Ondruch]
|
1010
|
+
[GitHub#74](https://github.com/test-unit/test-unit/issues/74)[Patch by Vít Ondruch]
|
270
1011
|
* Updated GPL text.
|
271
|
-
[GitHub#78][Patch by Vít Ondruch]
|
1012
|
+
[GitHub#78](https://github.com/test-unit/test-unit/issues/78)[Patch by Vít Ondruch]
|
272
1013
|
|
273
1014
|
### Fixes
|
274
1015
|
|
275
1016
|
* Removed needless executable bit from README file.
|
276
|
-
[GitHub#79][Patch by Vít Ondruch]
|
1017
|
+
[GitHub#79](https://github.com/test-unit/test-unit/issues/79)[Patch by Vít Ondruch]
|
277
1018
|
|
278
1019
|
### Thanks
|
279
1020
|
|
@@ -289,7 +1030,7 @@ It's a minor update release.
|
|
289
1030
|
|
290
1031
|
* Improved Ruby 1.8.7 support. Note that we don't support Ruby 1.8.7
|
291
1032
|
actively. We just support if its support is painless.
|
292
|
-
[GitHub#71][Patch by estolfo]
|
1033
|
+
[GitHub#71](https://github.com/test-unit/test-unit/issues/71)[Patch by estolfo]
|
293
1034
|
|
294
1035
|
### Thanks
|
295
1036
|
|
@@ -302,10 +1043,10 @@ It's Power Assert supported release!
|
|
302
1043
|
### Improvements
|
303
1044
|
|
304
1045
|
* Improved Rubinius support. [Ryo Onodera]
|
305
|
-
* Updated RR repository link. [GitHub#56][Patch by Kenichi Kamiya]
|
1046
|
+
* Updated RR repository link. [GitHub#56](https://github.com/test-unit/test-unit/issues/56)[Patch by Kenichi Kamiya]
|
306
1047
|
* Added some minitest compatible assertions. We don't recommend
|
307
1048
|
using these assertions. They are just for migrating from minitest.
|
308
|
-
[GitHub#57][Patch by Karol Bucek]
|
1049
|
+
[GitHub#57](https://github.com/test-unit/test-unit/issues/57)[Patch by Karol Bucek]
|
309
1050
|
* {Test::Unit::Assertions#refute}
|
310
1051
|
* {Test::Unit::Assertions#refute_predicate}
|
311
1052
|
* {Test::Unit::Assertions#refute_empty}
|
@@ -319,13 +1060,13 @@ It's Power Assert supported release!
|
|
319
1060
|
* {Test::Unit::Assertions#refute_operator}
|
320
1061
|
* Improved code readability. [Suggested by Kenichi Kamiya]
|
321
1062
|
* Made license field in RubyGems parseable.
|
322
|
-
[GitHub#60][Patch by Michael Grosser]
|
1063
|
+
[GitHub#60](https://github.com/test-unit/test-unit/issues/60)[Patch by Michael Grosser]
|
323
1064
|
* Improved test case match feature by `--testcase` and `--ignore-testcase`
|
324
1065
|
options. They also checks parent class names.
|
325
1066
|
* Made inspected representation of Numeric objects especially
|
326
|
-
BigDecimal more readable. [GitHub#64][Reported by Byron Appelt]
|
1067
|
+
BigDecimal more readable. [GitHub#64](https://github.com/test-unit/test-unit/issues/64)[Reported by Byron Appelt]
|
327
1068
|
* Added badges for Traivs CI and RubyGems.
|
328
|
-
[GitHub#65][Patch by Byron Appelt]
|
1069
|
+
[GitHub#65](https://github.com/test-unit/test-unit/issues/65)[Patch by Byron Appelt]
|
329
1070
|
* Supported Power Assert. You can use Power Assert with
|
330
1071
|
{Test::Unit::Assertions#assert} with block. See method document
|
331
1072
|
for details. We recommend using Power Assert for predicate method
|
@@ -339,10 +1080,10 @@ It's Power Assert supported release!
|
|
339
1080
|
### Fixes
|
340
1081
|
|
341
1082
|
* Fixed a bug that test case defined by block has wrong location.
|
342
|
-
[GitHub#58][Patch by Narihiro Nakamura]
|
1083
|
+
[GitHub#58](https://github.com/test-unit/test-unit/issues/58)[Patch by Narihiro Nakamura]
|
343
1084
|
* Fixed a bug that test methods defined in included modules in
|
344
1085
|
super-class are also collected.
|
345
|
-
[GitHub#62][GitHub#63][Patch by Karol Bucek]
|
1086
|
+
[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]
|
346
1087
|
|
347
1088
|
### Thanks
|
348
1089
|
|
@@ -360,14 +1101,14 @@ It's Ruby 2.0.0 supported release!
|
|
360
1101
|
|
361
1102
|
### Improvements
|
362
1103
|
|
363
|
-
* Supported Ruby 2.0.0. [GitHub#54] [Reported by mtasaka]
|
1104
|
+
* Supported Ruby 2.0.0. [GitHub#54](https://github.com/test-unit/test-unit/issues/54) [Reported by mtasaka]
|
364
1105
|
* Accepted screen-256color TERM as 256 colors available environment.
|
365
|
-
[GitHub#55] [Reported by Tom Miller]
|
1106
|
+
[GitHub#55](https://github.com/test-unit/test-unit/issues/55) [Reported by Tom Miller]
|
366
1107
|
|
367
1108
|
### Fixes
|
368
1109
|
|
369
1110
|
* Fixed a typo in document.
|
370
|
-
[GitHub#53] [Patch by Baptiste Fontaine]
|
1111
|
+
[GitHub#53](https://github.com/test-unit/test-unit/issues/53) [Patch by Baptiste Fontaine]
|
371
1112
|
* Fixed a bug in {Test::Unit::Assertions#assert_in_epsilon}. It doesn't work
|
372
1113
|
as expected if expected value is negative value.
|
373
1114
|
[Ruby Bug #8317] [Reported by Nobuhiro IMAI]
|
@@ -392,7 +1133,7 @@ It's a bug fix release.
|
|
392
1133
|
### Fixes
|
393
1134
|
|
394
1135
|
* Fixed a bug. It is too slow to filter tests when there are many
|
395
|
-
tests. [GitHub#46]
|
1136
|
+
tests. [GitHub#46](https://github.com/test-unit/test-unit/issues/46)
|
396
1137
|
* Accept anonymous test suite.
|
397
1138
|
[GitHub:#49] [Reported by Matthew Rudy Jacobs]
|
398
1139
|
|
@@ -410,21 +1151,21 @@ It's a release for minitest compatibility and bug fix.
|
|
410
1151
|
* Added some assersion methods just for minitest compatibility.
|
411
1152
|
Added methods are assert_includes(), refute_*() and refute().
|
412
1153
|
If you are test-unit user, please don't use them.
|
413
|
-
[GitHub#40] [Suggested by Michael Grosser]
|
1154
|
+
[GitHub#40](https://github.com/test-unit/test-unit/issues/40) [Suggested by Michael Grosser]
|
414
1155
|
* Added --attribute option to select target tests by attribute.
|
415
1156
|
[test-unit-users-en:00098] [Suggested by Piotr Nestorow]
|
416
1157
|
|
417
1158
|
### Fixes
|
418
1159
|
|
419
1160
|
* Allowed use of test for inheritance in ActionController::TestCase.
|
420
|
-
[GitHub#42] [Patch by David Rasch]
|
421
|
-
* Ensured evaluating
|
1161
|
+
[GitHub#42](https://github.com/test-unit/test-unit/issues/42) [Patch by David Rasch]
|
1162
|
+
* Ensured evaluating at_exit block in top level.
|
422
1163
|
In IRB context, exit() specifies irb_exit().
|
423
1164
|
[test-unit-users-en:00089] [Reported by Daniel Berger]
|
424
1165
|
* Fixed a bug that decoration style description is ignored.
|
425
1166
|
"decoration style description" are using description method
|
426
1167
|
above "def test_name" or with Symbol specifying test_name.
|
427
|
-
[GitHub#45] [Reported by Piotr Nestorow]
|
1168
|
+
[GitHub#45](https://github.com/test-unit/test-unit/issues/45) [Reported by Piotr Nestorow]
|
428
1169
|
|
429
1170
|
### Thanks
|
430
1171
|
|
@@ -442,10 +1183,10 @@ feature to `context` in shoulda-context and RSpec.
|
|
442
1183
|
### Improvements
|
443
1184
|
|
444
1185
|
* Cleaned up tests.
|
445
|
-
[GitHub#34] [Patch by Michael Grosser]
|
1186
|
+
[GitHub#34](https://github.com/test-unit/test-unit/issues/34) [Patch by Michael Grosser]
|
446
1187
|
* Added missing background color for 8 color environment.
|
447
1188
|
* Added workaround for NetBeans.
|
448
|
-
[GitHub#38] [Reported by Marc Cooper]
|
1189
|
+
[GitHub#38](https://github.com/test-unit/test-unit/issues/38) [Reported by Marc Cooper]
|
449
1190
|
* Added `--location` command line option that selects target tests
|
450
1191
|
by test defined location.
|
451
1192
|
* Created sub test suite for each subclassed test case.
|
@@ -455,7 +1196,7 @@ feature to `context` in shoulda-context and RSpec.
|
|
455
1196
|
[Good hook name is suggested by kdmsnr]
|
456
1197
|
* Improved code snippet target on failure. Test method is always used
|
457
1198
|
for code snippet target.
|
458
|
-
[GitHub#39] [Suggested by Michael Grosser]
|
1199
|
+
[GitHub#39](https://github.com/test-unit/test-unit/issues/39) [Suggested by Michael Grosser]
|
459
1200
|
* Added {Test::Unit::TestCase.sub_test_case} that creates sub test case.
|
460
1201
|
The sub test case name isn't limited Ruby's constant name rule. You can
|
461
1202
|
specify the sub test case name in free form.
|
@@ -473,16 +1214,16 @@ It's a bug fix release.
|
|
473
1214
|
### Improvements
|
474
1215
|
|
475
1216
|
* Supported installing from GitHub.
|
476
|
-
[GitHub#29] [Suggested by Michael Grosser]
|
1217
|
+
[GitHub#29](https://github.com/test-unit/test-unit/issues/29) [Suggested by Michael Grosser]
|
477
1218
|
* Supported ActiveSupport::TestCase.
|
478
|
-
[GitHub#30] [Reported by Michael Grosser]
|
1219
|
+
[GitHub#30](https://github.com/test-unit/test-unit/issues/30) [Reported by Michael Grosser]
|
479
1220
|
* [ui][console] Improved multiline falut message display.
|
480
1221
|
|
481
1222
|
### Fixes
|
482
1223
|
|
483
1224
|
* [ui][console] Fixed a bug that expected and actual values are
|
484
1225
|
empty.
|
485
|
-
[GitHub#31][GitHub#33]
|
1226
|
+
[GitHub#31](https://github.com/test-unit/test-unit/issues/31)[GitHub#33](https://github.com/test-unit/test-unit/issues/33)
|
486
1227
|
[Reported by Kendall Buchanan][Reported by Mathieu Martin]
|
487
1228
|
[Hinted by Michael Grosser]
|
488
1229
|
* Fixed a bug that .gemspec can't be loaded on LANG=C.
|
@@ -503,7 +1244,7 @@ It's a bug fix release.
|
|
503
1244
|
|
504
1245
|
* Fixed a backward incompatibility of `TestUnitMediator#run_suite`
|
505
1246
|
introduced in 2.4.9.
|
506
|
-
[GitHub#28] [Reported by Vladislav Rassokhin]
|
1247
|
+
[GitHub#28](https://github.com/test-unit/test-unit/issues/28) [Reported by Vladislav Rassokhin]
|
507
1248
|
|
508
1249
|
### Thanks
|
509
1250
|
|
@@ -524,7 +1265,7 @@ It's a bug fix release.
|
|
524
1265
|
* Supported showing ASCII-8BIT diff in failure message.
|
525
1266
|
* [ui][console] Supported `ENV["TERM"] == "xterm-256color"` as color
|
526
1267
|
available terminal.
|
527
|
-
[GitHub#26] [Reported by Michael Grosser]
|
1268
|
+
[GitHub#26](https://github.com/test-unit/test-unit/issues/26) [Reported by Michael Grosser]
|
528
1269
|
* [ui][console] Supported "-256color" suffix `ENV["TERM"]` terminal
|
529
1270
|
as 256 color supported terminal.
|
530
1271
|
|
@@ -535,7 +1276,7 @@ It's a bug fix release.
|
|
535
1276
|
says.
|
536
1277
|
[RubyForge#29554] [Reported by Bob Saveland]
|
537
1278
|
* Added missing `require "test/unit/diff"`.
|
538
|
-
[GitHub#25] [Reported by Stephan Kulow]
|
1279
|
+
[GitHub#25](https://github.com/test-unit/test-unit/issues/25) [Reported by Stephan Kulow]
|
539
1280
|
|
540
1281
|
### Thanks
|
541
1282
|
|
@@ -901,7 +1642,7 @@ Output improvement release!
|
|
901
1642
|
* use ~/.test-unit.yml as global configuration file.
|
902
1643
|
* add TAP runner. (--runner tap)
|
903
1644
|
* support colorized diff:
|
904
|
-
|
1645
|
+
https://test-unit.github.io/color-diff.png
|
905
1646
|
* add Test::Unit::AutoRunner.default_runner= to specify default test runner.
|
906
1647
|
|
907
1648
|
* 4 minor enhancements
|