test-unit 2.5.5 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/{README.textile → README.md} +15 -12
- data/Rakefile +3 -11
- data/doc/text/how-to.md +88 -0
- data/doc/text/news.md +731 -0
- data/lib/test/unit/{assertionfailederror.rb → assertion-failed-error.rb} +0 -0
- data/lib/test/unit/assertions.rb +354 -167
- data/lib/test/unit/attribute.rb +2 -1
- data/lib/test/unit/autorunner.rb +12 -10
- data/lib/test/unit/collector/dir.rb +8 -8
- data/lib/test/unit/collector/load.rb +10 -4
- data/lib/test/unit/collector/objectspace.rb +3 -3
- data/lib/test/unit/{exceptionhandler.rb → exception-handler.rb} +1 -1
- data/lib/test/unit/{testsuitecreator.rb → test-suite-creator.rb} +4 -3
- data/lib/test/unit/testcase.rb +14 -7
- data/lib/test/unit/util/backtracefilter.rb +8 -2
- data/lib/test/unit/version.rb +1 -1
- data/test/test-assertions.rb +284 -150
- data/test/test-attribute.rb +11 -0
- data/test/{test_error.rb → test-error.rb} +0 -0
- data/test/{test_failure.rb → test-failure.rb} +0 -0
- data/test/{test-testcase.rb → test-test-case.rb} +438 -201
- data/test/{test_testresult.rb → test-test-result.rb} +0 -0
- data/test/test-test-suite-creator.rb +97 -0
- data/test/{test_testsuite.rb → test-test-suite.rb} +0 -0
- metadata +140 -136
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 18bed4183c17597e00f6b9bf7daf03c7c0ed9e7f
|
4
|
+
data.tar.gz: fe2cec03d994cda555ce3582c77c13693e7cb1cd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a4b04644841f92e73c68c616057db743ec88e50b2c7a99979c926482dcf9e52936ac44f277880f6654f6b4eb0fb5e7b42f1e24d580cc4e8495df750b3d6412fe
|
7
|
+
data.tar.gz: 612722096ac30b810552f78833c60fd1627f3330efc6236ec0350ccfc31c6de53f60913845c49800dda254ea2dc444203533e6f37f789c183d670fdf33243de0
|
@@ -1,9 +1,12 @@
|
|
1
|
-
|
1
|
+
# test-unit
|
2
2
|
|
3
|
-
|
3
|
+
[![](https://badge.fury.io/rb/test-unit.png)](http://badge.fury.io/rb/test-unit)
|
4
|
+
[![](https://travis-ci.org/test-unit/test-unit.png?branch=master)](https://travis-ci.org/test-unit/test-unit)
|
5
|
+
|
6
|
+
* http://test-unit.github.io/
|
4
7
|
* https://github.com/test-unit/test-unit
|
5
8
|
|
6
|
-
|
9
|
+
## Description
|
7
10
|
|
8
11
|
test-unit - Improved version of Test::Unit bundled in Ruby
|
9
12
|
1.8.x.
|
@@ -12,7 +15,7 @@ Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit
|
|
12
15
|
bundled in Ruby 1.8.x had not been improved but unbundled
|
13
16
|
Test::Unit (test-unit) is improved actively.
|
14
17
|
|
15
|
-
|
18
|
+
## Features
|
16
19
|
|
17
20
|
* Test::Unit 1.2.3 is the original Test::Unit, taken
|
18
21
|
straight from the ruby distribution. It is being
|
@@ -29,11 +32,11 @@ h2. Features
|
|
29
32
|
provides for installing all Test::Unit related gems
|
30
33
|
easily.
|
31
34
|
|
32
|
-
|
35
|
+
## How To
|
33
36
|
|
34
37
|
* {file:doc/text/how-to.textile}
|
35
38
|
|
36
|
-
|
39
|
+
## Install
|
37
40
|
|
38
41
|
<pre>
|
39
42
|
% sudo gem install test-unit
|
@@ -45,7 +48,7 @@ If you want to use full Test::Unit features:
|
|
45
48
|
% sudo gem install test-unit-full
|
46
49
|
</pre>
|
47
50
|
|
48
|
-
|
51
|
+
## License
|
49
52
|
|
50
53
|
(The Ruby License)
|
51
54
|
|
@@ -59,23 +62,23 @@ Exception:
|
|
59
62
|
* lib/test-unit.rb is a dual license of the Ruby license and LGPLv2.1
|
60
63
|
or later.
|
61
64
|
|
62
|
-
|
65
|
+
## Authors
|
63
66
|
|
64
|
-
|
67
|
+
### Active
|
65
68
|
|
66
69
|
* Kouhei Sutou: The current maintainer
|
67
70
|
* Haruka Yoshihara: Data driven test supports.
|
68
71
|
|
69
|
-
|
72
|
+
### Inactive
|
70
73
|
|
71
74
|
* Nathaniel Talbott: The original author
|
72
75
|
* Ryan Davis: The second maintainer
|
73
76
|
|
74
|
-
|
77
|
+
### Images
|
75
78
|
|
76
79
|
* Mayu & Co.: kinotan icons: http://cocooooooon.com/kinotan/
|
77
80
|
|
78
|
-
|
81
|
+
## Thanks
|
79
82
|
|
80
83
|
* Daniel Berger: Suggestions and bug reports.
|
81
84
|
* Designing Patterns: Suggestions.
|
data/Rakefile
CHANGED
@@ -29,6 +29,7 @@ require "packnga"
|
|
29
29
|
task :default => :test
|
30
30
|
|
31
31
|
base_dir = File.dirname(__FILE__)
|
32
|
+
html_base_dir = File.join(base_dir, "doc", "html")
|
32
33
|
|
33
34
|
helper = Bundler::GemHelper.new(base_dir)
|
34
35
|
def helper.version_tag
|
@@ -46,16 +47,6 @@ end
|
|
46
47
|
Packnga::ReleaseTask.new(spec) do |task|
|
47
48
|
end
|
48
49
|
|
49
|
-
def rsync_to_rubyforge(spec, source, destination, options={})
|
50
|
-
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
|
51
|
-
host = "#{config["username"]}@rubyforge.org"
|
52
|
-
|
53
|
-
rsync_args = "-av --exclude '*.erb' --chmod=ug+w"
|
54
|
-
rsync_args << " --delete" if options[:delete]
|
55
|
-
remote_dir = "/var/www/gforge-projects/#{spec.rubyforge_project}/"
|
56
|
-
sh("rsync #{rsync_args} #{source} #{host}:#{remote_dir}#{destination}")
|
57
|
-
end
|
58
|
-
|
59
50
|
def rake(*arguments)
|
60
51
|
ruby($0, *arguments)
|
61
52
|
end
|
@@ -63,7 +54,8 @@ end
|
|
63
54
|
namespace :html do
|
64
55
|
desc "Publish HTML to Web site."
|
65
56
|
task :publish do
|
66
|
-
|
57
|
+
# FIXME Do nothing for now
|
58
|
+
#rsync_to_rubyforge(spec, "#{html_base_dir}/", "")
|
67
59
|
end
|
68
60
|
end
|
69
61
|
|
data/doc/text/how-to.md
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# How To
|
2
|
+
|
3
|
+
## Run all tests
|
4
|
+
|
5
|
+
To make it easy to run all your tests, you can add a `run_test.rb` script
|
6
|
+
to your `test` directory. A simple example might look like:
|
7
|
+
|
8
|
+
base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
9
|
+
lib_dir = File.join(base_dir, "lib")
|
10
|
+
test_dir = File.join(base_dir, "test")
|
11
|
+
|
12
|
+
$LOAD_PATH.unshift(lib_dir)
|
13
|
+
|
14
|
+
require 'test/unit'
|
15
|
+
|
16
|
+
exit Test::Unit::AutoRunner.run(true, test_dir)
|
17
|
+
|
18
|
+
Then it's easy to run tests via the command line with,
|
19
|
+
|
20
|
+
$ ruby test/run_test.rb
|
21
|
+
|
22
|
+
## Change test runner via the command line
|
23
|
+
|
24
|
+
The output format can be changed via the command line with
|
25
|
+
the `--runner` option. Simply tack it to the end:
|
26
|
+
|
27
|
+
ruby test/run_test.rb --runner tap
|
28
|
+
|
29
|
+
|
30
|
+
## Configure test-unit per-project
|
31
|
+
|
32
|
+
Test::Unit reads `test-unit.yml` or `.test-unit.yml` in the current working
|
33
|
+
directory as Test::Unit's configuration file. It can contain the following
|
34
|
+
settings:
|
35
|
+
|
36
|
+
* color scheme definitions
|
37
|
+
* test runner to be used
|
38
|
+
* test runner options
|
39
|
+
* test collector to be used
|
40
|
+
|
41
|
+
Except color scheme definitions, all of them can be specified by command
|
42
|
+
line option.
|
43
|
+
|
44
|
+
Here are sample color scheme definitions:
|
45
|
+
|
46
|
+
color_schemes:
|
47
|
+
inverted:
|
48
|
+
success:
|
49
|
+
name: red
|
50
|
+
bold: true
|
51
|
+
failure:
|
52
|
+
name: green
|
53
|
+
bold: true
|
54
|
+
other_scheme:
|
55
|
+
...
|
56
|
+
|
57
|
+
Here are the syntax of color scheme definitions:
|
58
|
+
|
59
|
+
color_schemes:
|
60
|
+
SCHEME_NAME:
|
61
|
+
EVENT_NAME:
|
62
|
+
name: COLOR_NAME
|
63
|
+
intensity: BOOLEAN
|
64
|
+
bold: BOOLEAN
|
65
|
+
italic: BOOLEAN
|
66
|
+
underline: BOOLEAN
|
67
|
+
...
|
68
|
+
...
|
69
|
+
|
70
|
+
| SCHEME_NAME | the name of the color scheme |
|
71
|
+
| EVENT_NAME | success, failure, pending, omission, notification, error |
|
72
|
+
| COLOR_NAME | black, red, green, yellow, blue, magenta, cyan, white |
|
73
|
+
| BOOLEAN | true or false |
|
74
|
+
|
75
|
+
You can use the above 'inverted' color scheme with the following configuration:
|
76
|
+
|
77
|
+
runner: console
|
78
|
+
console_options:
|
79
|
+
color_scheme: inverted
|
80
|
+
color_schemes:
|
81
|
+
inverted:
|
82
|
+
success:
|
83
|
+
name: red
|
84
|
+
bold: true
|
85
|
+
failure:
|
86
|
+
name: green
|
87
|
+
bold: true
|
88
|
+
|
data/doc/text/news.md
ADDED
@@ -0,0 +1,731 @@
|
|
1
|
+
# News
|
2
|
+
|
3
|
+
## 3.0.0 - 2014-08-03 {#version-3-0-0}
|
4
|
+
|
5
|
+
It's Power Assert supported release!
|
6
|
+
|
7
|
+
### Improvements
|
8
|
+
|
9
|
+
* Improved Rubinius support. [Ryo Onodera]
|
10
|
+
* Updated RR repository link. [GitHub#56][Patch by Kenichi Kamiya]
|
11
|
+
* Added some minitest compatible assertions. We don't recommend
|
12
|
+
using these assertions. They are just for migrating from minitest.
|
13
|
+
[GitHub#57][Patch by Karol Bucek]
|
14
|
+
* {Test::Unit::Assertions#refute}
|
15
|
+
* {Test::Unit::Assertions#refute_predicate}
|
16
|
+
* {Test::Unit::Assertions#refute_empty}
|
17
|
+
* {Test::Unit::Assertions#assert_not_includes}
|
18
|
+
* {Test::Unit::Assertions#refute_includes}
|
19
|
+
* {Test::Unit::Assertions#assert_not_instance_of}
|
20
|
+
* {Test::Unit::Assertions#refute_instance_of}
|
21
|
+
* {Test::Unit::Assertions#assert_not_kind_of}
|
22
|
+
* {Test::Unit::Assertions#refute_kind_of}
|
23
|
+
* {Test::Unit::Assertions#assert_not_operator}
|
24
|
+
* {Test::Unit::Assertions#refute_operator}
|
25
|
+
* Improved code readability. [Suggested by Kenichi Kamiya]
|
26
|
+
* Made license field in RubyGems parseable.
|
27
|
+
[GitHub#60][Patch by Michael Grosser]
|
28
|
+
* Improved test case match feature by `--testcase` and `--ignore-testcase`
|
29
|
+
options. They also checks parent class names.
|
30
|
+
* Made inspected representation of Numeric objects especially
|
31
|
+
BigDecimal more readable. [GitHub#64][Reported by Byron Appelt]
|
32
|
+
* Added badges for Traivs CI and RubyGems.
|
33
|
+
[GitHub#65][Patch by Byron Appelt]
|
34
|
+
* Supported Power Assert. You can use Power Assert with
|
35
|
+
{Test::Unit::Assertions#assert} with block. See method document
|
36
|
+
for details. We recommend using Power Assert for predicate method
|
37
|
+
checks. For example, we recommend Power Assert rather than
|
38
|
+
{Test::Unit::Assertions#assert_true},
|
39
|
+
{Test::Unit::Assertions#assert_predicate} and so on. We don't
|
40
|
+
recommend using Power Assert for equality check assertion.
|
41
|
+
{Test::Unit::Assertions#assert_equal} should be used for the case.
|
42
|
+
[Kazuki Tsujimoto]
|
43
|
+
|
44
|
+
### Fixes
|
45
|
+
|
46
|
+
* Fixed a bug that test case defined by block has wrong location.
|
47
|
+
[GitHub#58][Patch by Narihiro Nakamura]
|
48
|
+
* Fixed a bug that test methods defined in included modules in
|
49
|
+
super-class are also collected.
|
50
|
+
[GitHub#62][GitHub#63][Patch by Karol Bucek]
|
51
|
+
|
52
|
+
### Thanks
|
53
|
+
|
54
|
+
* Ryo Onodera
|
55
|
+
* Kenichi Kamiya
|
56
|
+
* Karol Bucek
|
57
|
+
* Narihiro Nakamura
|
58
|
+
* Michael Grosser
|
59
|
+
* Byron Appelt
|
60
|
+
* Kazuki Tsujimoto
|
61
|
+
|
62
|
+
## 2.5.5 - 2013-05-18 {#version-2-5-5}
|
63
|
+
|
64
|
+
It's Ruby 2.0.0 supported release!
|
65
|
+
|
66
|
+
### Improvements
|
67
|
+
|
68
|
+
* Supported Ruby 2.0.0. [GitHub#54] [Reported by mtasaka]
|
69
|
+
* Accepted screen-256color TERM as 256 colors available environment.
|
70
|
+
[GitHub#55] [Reported by Tom Miller]
|
71
|
+
|
72
|
+
### Fixes
|
73
|
+
|
74
|
+
* Fixed a typo in document.
|
75
|
+
[GitHub#53] [Patch by Baptiste Fontaine]
|
76
|
+
* Fixed a bug in {Test::Unit::Assertions#assert_in_epsilon}. It doesn't work
|
77
|
+
as expected if expected value is negative value.
|
78
|
+
[Ruby Bug #8317] [Reported by Nobuhiro IMAI]
|
79
|
+
|
80
|
+
### Thanks
|
81
|
+
|
82
|
+
* Baptiste Fontaine
|
83
|
+
* mtasaka
|
84
|
+
* Tom Miller
|
85
|
+
* Nobuhiro IMAI
|
86
|
+
|
87
|
+
## 2.5.4 - 2013-01-23 {#version-2-5-4}
|
88
|
+
|
89
|
+
It's a bug fix release.
|
90
|
+
|
91
|
+
### Improvements
|
92
|
+
|
93
|
+
* Added documents for data driven test functionality.
|
94
|
+
* Added TSV support for data driven test functionality.
|
95
|
+
* Support tag inspection on JRuby.
|
96
|
+
|
97
|
+
### Fixes
|
98
|
+
|
99
|
+
* Fixed a bug. It is too slow to filter tests when there are many
|
100
|
+
tests. [GitHub#46]
|
101
|
+
* Accept anonymous test suite.
|
102
|
+
[GitHub:#49] [Reported by Matthew Rudy Jacobs]
|
103
|
+
|
104
|
+
### Thanks
|
105
|
+
|
106
|
+
* Matthew Rudy Jacobs
|
107
|
+
|
108
|
+
## 2.5.3 - 2012-11-28 {#version-2-5-3}
|
109
|
+
|
110
|
+
It's a release for minitest compatibility and bug fix.
|
111
|
+
|
112
|
+
### Improvements
|
113
|
+
|
114
|
+
* Supported diff in invalid encoding.
|
115
|
+
* Added some assersion methods just for minitest compatibility.
|
116
|
+
Added methods are assert_includes(), refute_*() and refute().
|
117
|
+
If you are test-unit user, please don't use them.
|
118
|
+
[GitHub#40] [Suggested by Michael Grosser]
|
119
|
+
* Added --attribute option to select target tests by attribute.
|
120
|
+
[test-unit-users-en:00098] [Suggested by Piotr Nestorow]
|
121
|
+
|
122
|
+
### Fixes
|
123
|
+
|
124
|
+
* Allowed use of test for inheritance in ActionController::TestCase.
|
125
|
+
[GitHub#42] [Patch by David Rasch]
|
126
|
+
* Ensured evaluating at_exist block in top level.
|
127
|
+
In IRB context, exit() specifies irb_exit().
|
128
|
+
[test-unit-users-en:00089] [Reported by Daniel Berger]
|
129
|
+
* Fixed a bug that decoration style description is ignored.
|
130
|
+
"decoration style description" are using description method
|
131
|
+
above "def test_name" or with Symbol specifying test_name.
|
132
|
+
[GitHub#45] [Reported by Piotr Nestorow]
|
133
|
+
|
134
|
+
### Thanks
|
135
|
+
|
136
|
+
* Michael Grosser
|
137
|
+
* David Rasch
|
138
|
+
* Daniel Berger
|
139
|
+
* Piotr Nestorow
|
140
|
+
|
141
|
+
## 2.5.2 - 2012-08-29 {#version-2-5-2}
|
142
|
+
|
143
|
+
It's an improvement release for tmtms. `--location` is a similar
|
144
|
+
feature to `--line_number` in RSpec. `sub_test_case` is a similar
|
145
|
+
feature to `context` in shoulda-context and RSpec.
|
146
|
+
|
147
|
+
### Improvements
|
148
|
+
|
149
|
+
* Cleaned up tests.
|
150
|
+
[GitHub#34] [Patch by Michael Grosser]
|
151
|
+
* Added missing background color for 8 color environment.
|
152
|
+
* Added workaround for NetBeans.
|
153
|
+
[GitHub#38] [Reported by Marc Cooper]
|
154
|
+
* Added `--location` command line option that selects target tests
|
155
|
+
by test defined location.
|
156
|
+
* Created sub test suite for each subclassed test case.
|
157
|
+
* [ui][console] Supported nested test suites.
|
158
|
+
* Added {Test::Unit.at_start} and {Test::Unit.at_exit} hooks that
|
159
|
+
are run before/after all tests are run.
|
160
|
+
[Good hook name is suggested by kdmsnr]
|
161
|
+
* Improved code snippet target on failure. Test method is always used
|
162
|
+
for code snippet target.
|
163
|
+
[GitHub#39] [Suggested by Michael Grosser]
|
164
|
+
* Added {Test::Unit::TestCase.sub_test_case} that creates sub test case.
|
165
|
+
The sub test case name isn't limited Ruby's constant name rule. You can
|
166
|
+
specify the sub test case name in free form.
|
167
|
+
|
168
|
+
### Thanks
|
169
|
+
|
170
|
+
* Michael Grosser
|
171
|
+
* Marc Cooper
|
172
|
+
* kdmsnr
|
173
|
+
|
174
|
+
## 2.5.1 - 2012-07-05 {#version-2-5-1}
|
175
|
+
|
176
|
+
It's a bug fix release.
|
177
|
+
|
178
|
+
### Improvements
|
179
|
+
|
180
|
+
* Supported installing from GitHub.
|
181
|
+
[GitHub#29] [Suggested by Michael Grosser]
|
182
|
+
* Supported ActiveSupport::TestCase.
|
183
|
+
[GitHub#30] [Reported by Michael Grosser]
|
184
|
+
* [ui][console] Improved multiline falut message display.
|
185
|
+
|
186
|
+
### Fixes
|
187
|
+
|
188
|
+
* [ui][console] Fixed a bug that expected and actual values are
|
189
|
+
empty.
|
190
|
+
[GitHub#31][GitHub#33]
|
191
|
+
[Reported by Kendall Buchanan][Reported by Mathieu Martin]
|
192
|
+
[Hinted by Michael Grosser]
|
193
|
+
* Fixed a bug that .gemspec can't be loaded on LANG=C.
|
194
|
+
[RubyForge#29595] [Reported by Jean-Denis Koeck]
|
195
|
+
|
196
|
+
### Thanks
|
197
|
+
|
198
|
+
* Michael Grosser
|
199
|
+
* Kendall Buchanan
|
200
|
+
* Mathieu Martin
|
201
|
+
* Jean-Denis Koeck
|
202
|
+
|
203
|
+
## 2.5.0 - 2012-06-06 {#version-2-5-0}
|
204
|
+
|
205
|
+
It's a bug fix release.
|
206
|
+
|
207
|
+
### Fixes
|
208
|
+
|
209
|
+
* Fixed a backward incompatibility of `TestUnitMediator#run_suite`
|
210
|
+
introduced in 2.4.9.
|
211
|
+
[GitHub#28] [Reported by Vladislav Rassokhin]
|
212
|
+
|
213
|
+
### Thanks
|
214
|
+
|
215
|
+
* Vladislav Rassokhin
|
216
|
+
|
217
|
+
## 2.4.9 - 2012-06-03 {#version-2-4-9}
|
218
|
+
|
219
|
+
It's a bug fix release.
|
220
|
+
|
221
|
+
### Improvements
|
222
|
+
|
223
|
+
* `Test::Unit.run?` ->
|
224
|
+
`Test::Unit::AutoRunner.need_auto_run?`. `Test::Unit.run?` is marked
|
225
|
+
as deprecated but it is still available.
|
226
|
+
* [experimental] Added top level "run" method for `"ruby -rtest-unit -e
|
227
|
+
run test/test_*.rb"`. Is this API OK or dirty?
|
228
|
+
* Made failure output more readable on no color mode.
|
229
|
+
* Supported showing ASCII-8BIT diff in failure message.
|
230
|
+
* [ui][console] Supported `ENV["TERM"] == "xterm-256color"` as color
|
231
|
+
available terminal.
|
232
|
+
[GitHub#26] [Reported by Michael Grosser]
|
233
|
+
* [ui][console] Supported "-256color" suffix `ENV["TERM"]` terminal
|
234
|
+
as 256 color supported terminal.
|
235
|
+
|
236
|
+
### Fixes
|
237
|
+
|
238
|
+
* Fixed a bug that `--workdir` doesn't work.
|
239
|
+
* Consumed processed command line parameters in `ARGV` as `--help`
|
240
|
+
says.
|
241
|
+
[RubyForge#29554] [Reported by Bob Saveland]
|
242
|
+
* Added missing `require "test/unit/diff"`.
|
243
|
+
[GitHub#25] [Reported by Stephan Kulow]
|
244
|
+
|
245
|
+
### Thanks
|
246
|
+
|
247
|
+
* Bob Saveland
|
248
|
+
* Stephan Kulow
|
249
|
+
* Michael Grosser
|
250
|
+
|
251
|
+
## 2.4.8 - 2012-3-6 {#version-2-4-8}
|
252
|
+
|
253
|
+
It's a bug fix release.
|
254
|
+
|
255
|
+
### Improvements
|
256
|
+
|
257
|
+
* Delayed at_exit registration until Test::Unit is used.
|
258
|
+
[GitHub:#21] [Reported by Jason Lunn]
|
259
|
+
* Added workaround for test-spec.
|
260
|
+
[GitHub:#22] [Reported by Cédric Boutillier]
|
261
|
+
|
262
|
+
### Fixes
|
263
|
+
|
264
|
+
* Fixed an error on code snippet display on JRuby.
|
265
|
+
[GitHub:#19][GitHub:#20]
|
266
|
+
[Reported by Jørgen P. Tjernø][Patch by Junegunn Choi]
|
267
|
+
|
268
|
+
### Thanks
|
269
|
+
|
270
|
+
* Jørgen P. Tjernø
|
271
|
+
* Junegunn Choi
|
272
|
+
* Jason Lunn
|
273
|
+
|
274
|
+
## 2.4.7 - 2012-2-10 {#version-2-4-7}
|
275
|
+
|
276
|
+
It's a code snippet improvement release.
|
277
|
+
|
278
|
+
### Improvements
|
279
|
+
|
280
|
+
* Supported code snippet display on all faults.
|
281
|
+
|
282
|
+
## 2.4.6 - 2012-2-9 {#version-2-4-6}
|
283
|
+
|
284
|
+
It's a TAP runner separated release.
|
285
|
+
|
286
|
+
### Improvements
|
287
|
+
|
288
|
+
* Moved TAP runner to test-unit-runner-tap gem from test-unit gem.
|
289
|
+
* Supported code snippet display on failure.
|
290
|
+
|
291
|
+
## 2.4.5 - 2012-1-16 {#version-2-4-5}
|
292
|
+
|
293
|
+
It's a failure message readability improvement release.
|
294
|
+
|
295
|
+
### Improvements
|
296
|
+
|
297
|
+
* Removed needless information from exception inspected
|
298
|
+
text on failure. It's for easy to read.
|
299
|
+
* Supported custom inspector.
|
300
|
+
|
301
|
+
## 2.4.4 - 2012-1-2 {#version-2-4-4}
|
302
|
+
|
303
|
+
It's a Rails integration improved release.
|
304
|
+
|
305
|
+
### Improvements
|
306
|
+
|
307
|
+
* [ui][console] Don't break progress display when a test is failed.
|
308
|
+
* [ui][console] Added markers betwen a failure detail
|
309
|
+
message in progress to improve visibility.
|
310
|
+
* [travis] Dropped Ruby 1.8.6 as a test target. [GitHub:#13]
|
311
|
+
[Patch by Josh Kalderimis]
|
312
|
+
* Supported expected value == 0 case in assert_in_epsilon. [RubyForge#29485]
|
313
|
+
[Reported by Syver Enstad]
|
314
|
+
* Supported a block style setup/teardown/cleanup.
|
315
|
+
|
316
|
+
### Thanks
|
317
|
+
|
318
|
+
* Josh Kalderimis
|
319
|
+
* Syver Enstad
|
320
|
+
|
321
|
+
## 2.4.3 - 2011-12-11 {#version-2-4-3}
|
322
|
+
|
323
|
+
### Improvements
|
324
|
+
|
325
|
+
* Improved SimpleCov integration by stopping to modify
|
326
|
+
`ARGV` in auto runner. [GitHub:#12]
|
327
|
+
[Reported by Nikos Dimitrakopoulos]
|
328
|
+
* Improved JRuby integration by removing JRuby internal backtrace.
|
329
|
+
|
330
|
+
### Thanks
|
331
|
+
|
332
|
+
* Nikos Dimitrakopoulos
|
333
|
+
|
334
|
+
## 2.4.2 - 2011-11-26 {#version-2-4-2}
|
335
|
+
|
336
|
+
### Improvements
|
337
|
+
|
338
|
+
* `--name` supported data label.
|
339
|
+
|
340
|
+
## 2.4.1 - 2011-11-09
|
341
|
+
|
342
|
+
### Improvements
|
343
|
+
|
344
|
+
* Accepted AssertionMessage as assertion's user message.
|
345
|
+
It is used in assert_select in actionpack.
|
346
|
+
[Reported by David Heath]
|
347
|
+
|
348
|
+
### Fixes
|
349
|
+
|
350
|
+
* Fixed test failure on LANG=C. #11 [Reported by boutil]
|
351
|
+
* Suppress warnings on Ruby 1.9.2.
|
352
|
+
|
353
|
+
### Thanks
|
354
|
+
|
355
|
+
* boutil
|
356
|
+
* David Heath
|
357
|
+
|
358
|
+
## 2.4.0 - 2011-09-18
|
359
|
+
|
360
|
+
### Improvements
|
361
|
+
|
362
|
+
* Supported Travis CI. #5 [Suggested by James Mead]
|
363
|
+
* Added Gemfile. #6 [Suggested by James Mead]
|
364
|
+
* [ui][console] Supported notification in show-detail-immediately.
|
365
|
+
* [ui][console] enable --show-detail-immediately by default.
|
366
|
+
* [ui] Added --max-diff-target-string-size option.
|
367
|
+
* [ui][console] Supported 256 colors.
|
368
|
+
|
369
|
+
### Fixes
|
370
|
+
|
371
|
+
* Added missing fixture file. #7 [Reported by grafi-tt]
|
372
|
+
* [ui][console] Added missing the last newline for progress level.
|
373
|
+
* Supported correct backtrace for redefined notification.
|
374
|
+
* Don't handle Timeout::Error as pass through exception on Ruby 1.8. #8
|
375
|
+
[Reported by Marc Seeger (Acquia)]
|
376
|
+
|
377
|
+
### Thanks
|
378
|
+
|
379
|
+
* James Mead
|
380
|
+
* grafi-tt
|
381
|
+
* Marc Seeger (Acquia)
|
382
|
+
|
383
|
+
## 2.3.2 - 2011-08-15
|
384
|
+
|
385
|
+
A bug fix release.
|
386
|
+
|
387
|
+
### Improvements
|
388
|
+
|
389
|
+
* [ui][console] Added some newlines to improve readability.
|
390
|
+
|
391
|
+
### Fixes
|
392
|
+
|
393
|
+
* [ui][console] Worked --verbose again.
|
394
|
+
* Re-supported Ruby 1.8.6. [Reported by James Mead]
|
395
|
+
|
396
|
+
### Thanks
|
397
|
+
|
398
|
+
* James Mead
|
399
|
+
|
400
|
+
## 2.3.1 - 2011-08-06 {#version-2-3-1}
|
401
|
+
|
402
|
+
Output improvement release!
|
403
|
+
|
404
|
+
### Improvements
|
405
|
+
|
406
|
+
* [ui][console] Outputs omissions and notifications in short.
|
407
|
+
* [ui][console] Added "important-only" verbose level.
|
408
|
+
* Intelligence diff supports recursive references.
|
409
|
+
* [rubyforge #29325] Supported Ruby Enterprise Edition.
|
410
|
+
[Reported by Hans de Graaff]
|
411
|
+
* [rubyforge #29326] Supported JRuby.
|
412
|
+
[Reported by Hans de Graaff]
|
413
|
+
* Added --show-detail-immediately option that shows
|
414
|
+
fault details when a fault is occurred.
|
415
|
+
|
416
|
+
### Fixes
|
417
|
+
|
418
|
+
* [pull request #1] Fixed a problem that load collector
|
419
|
+
can't load a test file on Ruby 1.9. [Patch by grafi-tt]
|
420
|
+
* [issue #3] Fixed a problem that implicit method name
|
421
|
+
override by declarative style test definition.
|
422
|
+
[Reported by Jeremy Stephens]
|
423
|
+
|
424
|
+
### Thanks
|
425
|
+
|
426
|
+
* grafi-tt
|
427
|
+
* Jeremy Stephens
|
428
|
+
* Hans de Graaff
|
429
|
+
|
430
|
+
## 2.3.0 / 2011-04-17
|
431
|
+
|
432
|
+
* 13 enhancements
|
433
|
+
* improve Hash key sorting for diff.
|
434
|
+
* [#28928] support any characters in declarative style description.
|
435
|
+
[Daniel Berger]
|
436
|
+
* add Error#location and make #backtrace deprecated.
|
437
|
+
* make TestCase#passed? public.
|
438
|
+
* add result finished and pass assertion notifications.
|
439
|
+
* add TestSuite#passed? public.
|
440
|
+
* add XML test runner.
|
441
|
+
* add --output-file-descriptor option.
|
442
|
+
* measure elapsed time for each test.
|
443
|
+
* add --collector option.
|
444
|
+
* support test driven test.
|
445
|
+
[Haruka Yoshihara]
|
446
|
+
* add cleanup hook it runs between after test and before teardown.
|
447
|
+
* support recursive collection sort for diff.
|
448
|
+
|
449
|
+
* Thanks
|
450
|
+
* Daniel Berger
|
451
|
+
* Haruka Yoshihara
|
452
|
+
|
453
|
+
## 2.2.0 / 2011-02-14
|
454
|
+
|
455
|
+
* 22 enhancements
|
456
|
+
* [#28808] accept String as delta for assert_in_delta.
|
457
|
+
[Daniel Berger]
|
458
|
+
* [test-unit-users-en:00035] make GC-able finished tests.
|
459
|
+
[Daniel Berger]
|
460
|
+
* use also COLUMNS environment variable to guess terminal width.
|
461
|
+
* make delta for assert_in_delta optional.
|
462
|
+
[Nobuyoshi Nakada]
|
463
|
+
* add assert_not_respond_to.
|
464
|
+
[Nobuyoshi Nakada]
|
465
|
+
* add assert_not_match. assert_no_match is deprecated.
|
466
|
+
[Nobuyoshi Nakada]
|
467
|
+
* add assert_not_in_delta.
|
468
|
+
[Nobuyoshi Nakada]
|
469
|
+
* add assert_in_epsilon.
|
470
|
+
[Nobuyoshi Nakada]
|
471
|
+
* add assert_not_in_epsilon.
|
472
|
+
[Nobuyoshi Nakada]
|
473
|
+
* add assert_include.
|
474
|
+
[Nobuyoshi Nakada]
|
475
|
+
* add assert_not_include.
|
476
|
+
[Nobuyoshi Nakada]
|
477
|
+
* add assert_empty.
|
478
|
+
[Nobuyoshi Nakada]
|
479
|
+
* add assert_not_empty.
|
480
|
+
[Nobuyoshi Nakada]
|
481
|
+
* notify require failed paths.
|
482
|
+
* validate message value for assert.
|
483
|
+
* show throughputs at the last.
|
484
|
+
* support not ASCII compatible string diff.
|
485
|
+
* support colorized diff on encoding different string.
|
486
|
+
* normalize entry order of Hash for readable diff.
|
487
|
+
* add --ignore-name option.
|
488
|
+
* add --ignore-testcase option.
|
489
|
+
* add assert_not_send.
|
490
|
+
|
491
|
+
* Thanks
|
492
|
+
* Daniel Berger
|
493
|
+
* Nobuyoshi Nakada
|
494
|
+
|
495
|
+
## 2.1.2 / 2010-11-25
|
496
|
+
|
497
|
+
* 1 enhancement
|
498
|
+
* support auto runner prepare hook.
|
499
|
+
|
500
|
+
## 2.1.1 / 2010-07-29
|
501
|
+
|
502
|
+
* 1 bug fix
|
503
|
+
* [test-unit-users-en:00026] re-work tap runner.
|
504
|
+
[Daniel Berger]
|
505
|
+
|
506
|
+
* Thanks
|
507
|
+
* Daniel Berger
|
508
|
+
|
509
|
+
=== 2.1.0 / 2010-07-17
|
510
|
+
|
511
|
+
* 1 bug fix
|
512
|
+
* [#28267] global config file ignored
|
513
|
+
[Daniel Berger]
|
514
|
+
|
515
|
+
* Thanks
|
516
|
+
* Daniel Berger
|
517
|
+
|
518
|
+
## 2.0.8 / 2010-06-02
|
519
|
+
|
520
|
+
* 5 major enchancements
|
521
|
+
* collect *_test.rb and *-test.rb files as test files.
|
522
|
+
* [#28181] improve assert_in_delta message.
|
523
|
+
[Suggested by David MARCHALAND]
|
524
|
+
* show string encoding in assert_equal failure message if
|
525
|
+
they are different.
|
526
|
+
* change default color scheme:
|
527
|
+
* success: green back + white
|
528
|
+
* failure: red back + white
|
529
|
+
* add capture_output.
|
530
|
+
|
531
|
+
* 2 bug fixes
|
532
|
+
* fix a bug that console runner on verbose mode causes an
|
533
|
+
error for long test name (>= 61).
|
534
|
+
* [#28093] Autorunner ignores all files in a directory named test by default
|
535
|
+
[Reported by Florian Frank]
|
536
|
+
|
537
|
+
* Thanks
|
538
|
+
* Florian Frank
|
539
|
+
* David MARCHALAND
|
540
|
+
|
541
|
+
## 2.0.7 / 2010-03-09
|
542
|
+
|
543
|
+
* 4 major enhancements
|
544
|
+
* detect redefined test methods.
|
545
|
+
* [INTERFACE IMCOMPATIBLE] multiple --name and --testcase
|
546
|
+
options narrow down targets instead of adding targets.
|
547
|
+
* [#27764] accept custom test_order for each test case.
|
548
|
+
[Suggested by David MARCHALAND]
|
549
|
+
* [#27790] ignore omitted tests from 'n% passed' report.
|
550
|
+
[Suggested by Daniel Berger]
|
551
|
+
|
552
|
+
* 2 minor enchancements
|
553
|
+
* [#27832] ignore .git directory. [Suggested by Daniel Berger]
|
554
|
+
* [#27792] require 'fileutils' and 'tmpdir' lazily for non-priority
|
555
|
+
mode users. [Suggested by David MARCHALAND]
|
556
|
+
|
557
|
+
* 2 bug fixes
|
558
|
+
* [#27892] modify processed arguments array destructively.
|
559
|
+
[Reported by Bob Saveland]
|
560
|
+
* work without HOME environment variable.
|
561
|
+
[Reported by Champak Ch]
|
562
|
+
|
563
|
+
* Thanks
|
564
|
+
* David MARCHALAND
|
565
|
+
* Daniel Berger
|
566
|
+
* Bob Saveland
|
567
|
+
* Champak Ch
|
568
|
+
|
569
|
+
## 2.0.6 / 2010-01-09
|
570
|
+
|
571
|
+
* 3 major enhancements
|
572
|
+
* [#27380] Declarative syntax? [Daniel Berger]
|
573
|
+
support declarative syntax:
|
574
|
+
|
575
|
+
test "test description in natural language" do
|
576
|
+
...
|
577
|
+
end
|
578
|
+
* support test description:
|
579
|
+
description "test description in natural language"
|
580
|
+
def test_my_test
|
581
|
+
...
|
582
|
+
end
|
583
|
+
* make max diff target string size customizable by
|
584
|
+
TEST_UNIT_MAX_DIFF_TARGET_STRING_SIZE environment variable.
|
585
|
+
|
586
|
+
* 2 bug fixes
|
587
|
+
* [#27374] omit_if unexpected behavior [David MARCHALAND]
|
588
|
+
* fix a bug that tests in sub directories aren't load with --basedir.
|
589
|
+
[Daniel Berger]
|
590
|
+
|
591
|
+
* Thanks
|
592
|
+
* David MARCHALAND
|
593
|
+
* Daniel Berger
|
594
|
+
|
595
|
+
## 2.0.5 / 2009-10-18
|
596
|
+
|
597
|
+
* 1 bug fixes
|
598
|
+
* [#27314] fix diff may raise an exception. [Erik Hollensbe]
|
599
|
+
|
600
|
+
* Thanks
|
601
|
+
* Erik Hollensbe
|
602
|
+
|
603
|
+
## 2.0.4 / 2009-10-17
|
604
|
+
|
605
|
+
* 4 major enhancements
|
606
|
+
* use ~/.test-unit.yml as global configuration file.
|
607
|
+
* add TAP runner. (--runner tap)
|
608
|
+
* support colorized diff:
|
609
|
+
http://test-unit.github.io/color-diff.png
|
610
|
+
* add Test::Unit::AutoRunner.default_runner= to specify default test runner.
|
611
|
+
|
612
|
+
* 4 minor enhancements
|
613
|
+
* improve verbose mode output format. (use indent)
|
614
|
+
* support `NOT_PASS_THROUGH_EXCEPTIONS`.
|
615
|
+
* support arguments option in `#{runner}_options`.
|
616
|
+
* TC_ -> Test in sample test case name.
|
617
|
+
|
618
|
+
* 1 bug fixes
|
619
|
+
* [#27195] test-unit-2.0.3 + ruby-1.9.1 cannot properly test
|
620
|
+
DelegateClass subclasses [Mike Pomraning]
|
621
|
+
|
622
|
+
* Thanks
|
623
|
+
* Mike Pomraning
|
624
|
+
|
625
|
+
## 2.0.3 / 2009-07-19
|
626
|
+
|
627
|
+
* 6 major enhancements
|
628
|
+
* add assert_predicate.
|
629
|
+
* add assert_not_predicate.
|
630
|
+
* [#24210] assert_kind_of supports an array of classes or modules.
|
631
|
+
[Daniel Berger]
|
632
|
+
* assert_instance_of supports an array of classes or modules.
|
633
|
+
* add --default-priority option.
|
634
|
+
* [#26627] add --order option. [Daniel Berger]
|
635
|
+
|
636
|
+
* 4 minor enhancements
|
637
|
+
* use yellow foreground + black background for error.
|
638
|
+
* don't show diff for long string.
|
639
|
+
* accept "*term-color" TERM environment as colorizable terminal.
|
640
|
+
(e.g. Apple's Terminal)
|
641
|
+
* [#26268] add a workaround for test-spec's after_all. [Angelo Lakra]
|
642
|
+
|
643
|
+
* 1 bug fix
|
644
|
+
* [#23586] re-support ruby 1.9.1. [Diego Pettenò]
|
645
|
+
|
646
|
+
* Thanks
|
647
|
+
* Diego Pettenò
|
648
|
+
* Daniel Berger
|
649
|
+
* Angelo Lakra
|
650
|
+
|
651
|
+
## 2.0.2 / 2008-12-21
|
652
|
+
|
653
|
+
* 2 major enhancements
|
654
|
+
|
655
|
+
* re-support ruby 1.8.5.
|
656
|
+
* improve exception object comparison.
|
657
|
+
|
658
|
+
* 3 bug fixes
|
659
|
+
|
660
|
+
* [#22723]: collector fails on anonymous classes
|
661
|
+
* [#22986]: Test names with '?' blow up on Windows
|
662
|
+
* [#22988]: don't create .test-result on non-priority mode.
|
663
|
+
|
664
|
+
* Thanks
|
665
|
+
|
666
|
+
* Erik Hollensbe
|
667
|
+
* Daniel Berger
|
668
|
+
* Bill Lear
|
669
|
+
|
670
|
+
## 2.0.1 / 2008-11-09
|
671
|
+
|
672
|
+
* 19 major enhancements
|
673
|
+
|
674
|
+
* support ruby 1.9.1.
|
675
|
+
* add run_test method to be extensible.
|
676
|
+
* improve priority-mode auto off.
|
677
|
+
* improve startup/shutdown RDoc. [Daniel Berger]
|
678
|
+
* add assert_compare. [#20851] [Designing Patterns]
|
679
|
+
* add assert_fail_assertion. [#20851] [Designing Patterns]
|
680
|
+
* add assert_raise_message. [#20851] [Designing Patterns]
|
681
|
+
* support folded diff.
|
682
|
+
* add assert_raise_kind_of. [Daniel Berger]
|
683
|
+
* ingore inherited test for nested test case.
|
684
|
+
* add assert_const_defined.
|
685
|
+
* add assert_not_const_defined.
|
686
|
+
* support assert_raise with an exception object.
|
687
|
+
* support assert_raise with no arguments that asserts any
|
688
|
+
exception is raised. [#22602] [Daniel Berger]
|
689
|
+
* support folded dot progress.
|
690
|
+
* add --progress-row-max option.
|
691
|
+
* support color scheme customize.
|
692
|
+
* support configuration file. (YAML)
|
693
|
+
* recognize test-XXX.rb files as test files not only test_XXX.rb
|
694
|
+
|
695
|
+
* Thanks
|
696
|
+
|
697
|
+
* Daniel Berger
|
698
|
+
* Designing Patterns
|
699
|
+
|
700
|
+
## 2.0.0 / 2008-06-18
|
701
|
+
|
702
|
+
* 15 major enhancements
|
703
|
+
|
704
|
+
* support startup/shutdown. (test case level setup/teardown)
|
705
|
+
* support multiple setup/teardown.
|
706
|
+
* support pending.
|
707
|
+
* support omission.
|
708
|
+
* support notification.
|
709
|
+
* support colorize.
|
710
|
+
* support diff.
|
711
|
+
* support test attribute.
|
712
|
+
* add assert_boolean.
|
713
|
+
* add assert_true.
|
714
|
+
* add assert_false.
|
715
|
+
* add --priority-mode option.
|
716
|
+
* don't use ObjectSpace to collect test cases.
|
717
|
+
* make more customizable. (additional options, exception handling and so on)
|
718
|
+
* improve Emacs integration.
|
719
|
+
|
720
|
+
* 4 major changes
|
721
|
+
|
722
|
+
* remove GTK+1 support.
|
723
|
+
* split GTK+ runner as another gem.
|
724
|
+
* split FOX runner as another gem.
|
725
|
+
* split Tk runner as another gem.
|
726
|
+
|
727
|
+
## 1.2.3 / 2008-02-25
|
728
|
+
|
729
|
+
* 1 major enhancement
|
730
|
+
|
731
|
+
* Birthday (as a gem)!
|