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.
@@ -0,0 +1,97 @@
1
+ require "test/unit"
2
+
3
+ module Test
4
+ module Unit
5
+ class TestTestSuiteCreator < TestCase
6
+ def collect_test_names(test_case)
7
+ creator = TestSuiteCreator.new(test_case)
8
+ creator.send(:collect_test_names)
9
+ end
10
+
11
+ class TestStandalone < self
12
+ def setup
13
+ @test_case = Class.new(TestCase) do
14
+ def test_in_test_case
15
+ end
16
+ end
17
+ end
18
+
19
+ def test_collect_test_names
20
+ assert_equal(["test_in_test_case"], collect_test_names(@test_case))
21
+ end
22
+ end
23
+
24
+ class TestInherited < self
25
+ def setup
26
+ @parent_test_case = Class.new(TestCase) do
27
+ def test_in_parent
28
+ end
29
+ end
30
+
31
+ @child_test_case = Class.new(@parent_test_case) do
32
+ def test_in_child
33
+ end
34
+ end
35
+ end
36
+
37
+ def test_collect_test_names
38
+ assert_equal(["test_in_child"], collect_test_names(@child_test_case))
39
+ end
40
+ end
41
+
42
+ class TestModule < self
43
+ def setup
44
+ test_module = Module.new do
45
+ def test_in_module
46
+ end
47
+ end
48
+
49
+ @test_case = Class.new(TestCase) do
50
+ include test_module
51
+
52
+ def test_in_test_case
53
+ end
54
+ end
55
+ end
56
+
57
+ def test_collect_test_names
58
+ assert_equal(["test_in_module", "test_in_test_case"].sort,
59
+ collect_test_names(@test_case).sort)
60
+ end
61
+ end
62
+
63
+ class TestInheritedModule < self
64
+ def setup
65
+ parent_test_module = Module.new do
66
+ def test_in_module_in_parent
67
+ end
68
+ end
69
+
70
+ child_test_module = Module.new do
71
+ def test_in_module_in_child
72
+ end
73
+ end
74
+
75
+ @parent_test_case = Class.new(TestCase) do
76
+ include parent_test_module
77
+
78
+ def test_in_parent
79
+ end
80
+ end
81
+
82
+ @child_test_case = Class.new(@parent_test_case) do
83
+ include child_test_module
84
+
85
+ def test_in_child
86
+ end
87
+ end
88
+ end
89
+
90
+ def test_collect_test_names
91
+ assert_equal(["test_in_child", "test_in_module_in_child"].sort,
92
+ collect_test_names(@child_test_case).sort)
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.5
5
- prerelease:
4
+ version: 3.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kouhei Sutou
@@ -10,95 +9,96 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-05-18 00:00:00.000000000 Z
12
+ date: 2014-08-03 00:00:00.000000000 Z
14
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: power_assert
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
15
28
  - !ruby/object:Gem::Dependency
16
29
  name: bundler
17
30
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
31
  requirements:
20
- - - ! '>='
32
+ - - ">="
21
33
  - !ruby/object:Gem::Version
22
34
  version: '0'
23
35
  type: :development
24
36
  prerelease: false
25
37
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
38
  requirements:
28
- - - ! '>='
39
+ - - ">="
29
40
  - !ruby/object:Gem::Version
30
41
  version: '0'
31
42
  - !ruby/object:Gem::Dependency
32
43
  name: rake
33
44
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
45
  requirements:
36
- - - ! '>='
46
+ - - ">="
37
47
  - !ruby/object:Gem::Version
38
48
  version: '0'
39
49
  type: :development
40
50
  prerelease: false
41
51
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
52
  requirements:
44
- - - ! '>='
53
+ - - ">="
45
54
  - !ruby/object:Gem::Version
46
55
  version: '0'
47
56
  - !ruby/object:Gem::Dependency
48
57
  name: yard
49
58
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
59
  requirements:
52
- - - ! '>='
60
+ - - ">="
53
61
  - !ruby/object:Gem::Version
54
62
  version: '0'
55
63
  type: :development
56
64
  prerelease: false
57
65
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
66
  requirements:
60
- - - ! '>='
67
+ - - ">="
61
68
  - !ruby/object:Gem::Version
62
69
  version: '0'
63
70
  - !ruby/object:Gem::Dependency
64
- name: RedCloth
71
+ name: kramdown
65
72
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
73
  requirements:
68
- - - ! '>='
74
+ - - ">="
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  type: :development
72
78
  prerelease: false
73
79
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
80
  requirements:
76
- - - ! '>='
81
+ - - ">="
77
82
  - !ruby/object:Gem::Version
78
83
  version: '0'
79
84
  - !ruby/object:Gem::Dependency
80
85
  name: packnga
81
86
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
87
  requirements:
84
- - - ! '>='
88
+ - - ">="
85
89
  - !ruby/object:Gem::Version
86
90
  version: '0'
87
91
  type: :development
88
92
  prerelease: false
89
93
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
94
  requirements:
92
- - - ! '>='
95
+ - - ">="
93
96
  - !ruby/object:Gem::Version
94
97
  version: '0'
95
- description: ! 'Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit
96
-
98
+ description: |
99
+ Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit
97
100
  bundled in Ruby 1.8.x had not been improved but unbundled
98
-
99
101
  Test::Unit (test-unit) is improved actively.
100
-
101
- '
102
102
  email:
103
103
  - kou@cozmixng.org
104
104
  - yoshihara@clear-code.com
@@ -106,167 +106,171 @@ executables: []
106
106
  extensions: []
107
107
  extra_rdoc_files: []
108
108
  files:
109
- - README.textile
110
- - TODO
111
- - Rakefile
112
109
  - COPYING
113
110
  - GPL
114
111
  - LGPL
115
112
  - PSFL
113
+ - README.md
114
+ - Rakefile
115
+ - TODO
116
+ - doc/text/how-to.md
117
+ - doc/text/news.md
116
118
  - lib/test-unit.rb
117
119
  - lib/test/unit.rb
120
+ - lib/test/unit/assertion-failed-error.rb
121
+ - lib/test/unit/assertions.rb
122
+ - lib/test/unit/attribute-matcher.rb
118
123
  - lib/test/unit/attribute.rb
119
- - lib/test/unit/data.rb
120
- - lib/test/unit/color.rb
121
- - lib/test/unit/version.rb
122
- - lib/test/unit/runner/emacs.rb
123
- - lib/test/unit/runner/console.rb
124
- - lib/test/unit/runner/xml.rb
125
- - lib/test/unit/ui/testrunnerutilities.rb
126
- - lib/test/unit/ui/emacs/testrunner.rb
127
- - lib/test/unit/ui/testrunner.rb
128
- - lib/test/unit/ui/xml/testrunner.rb
129
- - lib/test/unit/ui/console/outputlevel.rb
130
- - lib/test/unit/ui/console/testrunner.rb
131
- - lib/test/unit/ui/testrunnermediator.rb
132
- - lib/test/unit/assertionfailederror.rb
133
- - lib/test/unit/failure.rb
134
124
  - lib/test/unit/autorunner.rb
135
- - lib/test/unit/fault-location-detector.rb
136
- - lib/test/unit/exceptionhandler.rb
137
- - lib/test/unit/assertions.rb
138
- - lib/test/unit/error.rb
139
- - lib/test/unit/omission.rb
140
- - lib/test/unit/fixture.rb
125
+ - lib/test/unit/code-snippet-fetcher.rb
126
+ - lib/test/unit/collector.rb
141
127
  - lib/test/unit/collector/descendant.rb
142
- - lib/test/unit/collector/load.rb
143
- - lib/test/unit/collector/xml.rb
144
128
  - lib/test/unit/collector/dir.rb
129
+ - lib/test/unit/collector/load.rb
145
130
  - lib/test/unit/collector/objectspace.rb
146
- - lib/test/unit/code-snippet-fetcher.rb
147
- - lib/test/unit/attribute-matcher.rb
148
- - lib/test/unit/testsuitecreator.rb
131
+ - lib/test/unit/collector/xml.rb
149
132
  - lib/test/unit/color-scheme.rb
133
+ - lib/test/unit/color.rb
134
+ - lib/test/unit/data.rb
135
+ - lib/test/unit/diff.rb
136
+ - lib/test/unit/error.rb
137
+ - lib/test/unit/exception-handler.rb
138
+ - lib/test/unit/failure.rb
139
+ - lib/test/unit/fault-location-detector.rb
140
+ - lib/test/unit/fixture.rb
141
+ - lib/test/unit/notification.rb
142
+ - lib/test/unit/omission.rb
143
+ - lib/test/unit/pending.rb
144
+ - lib/test/unit/priority.rb
145
+ - lib/test/unit/runner/console.rb
146
+ - lib/test/unit/runner/emacs.rb
147
+ - lib/test/unit/runner/xml.rb
148
+ - lib/test/unit/test-suite-creator.rb
150
149
  - lib/test/unit/testcase.rb
150
+ - lib/test/unit/testresult.rb
151
+ - lib/test/unit/testsuite.rb
152
+ - lib/test/unit/ui/console/outputlevel.rb
153
+ - lib/test/unit/ui/console/testrunner.rb
154
+ - lib/test/unit/ui/emacs/testrunner.rb
155
+ - lib/test/unit/ui/testrunner.rb
156
+ - lib/test/unit/ui/testrunnermediator.rb
157
+ - lib/test/unit/ui/testrunnerutilities.rb
158
+ - lib/test/unit/ui/xml/testrunner.rb
159
+ - lib/test/unit/util/backtracefilter.rb
151
160
  - lib/test/unit/util/method-owner-finder.rb
161
+ - lib/test/unit/util/observable.rb
152
162
  - lib/test/unit/util/output.rb
153
163
  - lib/test/unit/util/procwrapper.rb
154
- - lib/test/unit/util/observable.rb
155
- - lib/test/unit/util/backtracefilter.rb
156
- - lib/test/unit/pending.rb
157
- - lib/test/unit/testresult.rb
158
- - lib/test/unit/collector.rb
159
- - lib/test/unit/diff.rb
160
- - lib/test/unit/priority.rb
161
- - lib/test/unit/notification.rb
162
- - lib/test/unit/testsuite.rb
163
- - sample/test_subtracter.rb
164
+ - lib/test/unit/version.rb
165
+ - sample/adder.rb
164
166
  - sample/subtracter.rb
165
- - sample/test_user.rb
166
167
  - sample/test_adder.rb
167
- - sample/adder.rb
168
- - test/testunit-test-util.rb
169
- - test/test-testcase.rb
170
- - test/ui/test_testrunmediator.rb
171
- - test/test_testresult.rb
172
- - test/test-pending.rb
173
- - test/test-emacs-runner.rb
174
- - test/test-fixture.rb
175
- - test/test-attribute.rb
176
- - test/test-attribute-matcher.rb
177
- - test/test_failure.rb
178
- - test/test-data.rb
179
- - test/test_testsuite.rb
180
- - test/collector/test_objectspace.rb
168
+ - sample/test_subtracter.rb
169
+ - sample/test_user.rb
181
170
  - test/collector/test-descendant.rb
182
- - test/collector/test_dir.rb
183
171
  - test/collector/test-load.rb
184
- - test/run-test.rb
185
- - test/test-assertions.rb
186
- - test/test-priority.rb
187
- - test/util/test_backtracefilter.rb
188
- - test/util/test_observable.rb
189
- - test/util/test_procwrapper.rb
190
- - test/util/test-method-owner-finder.rb
191
- - test/util/test-output.rb
192
- - test/fixtures/no-header.tsv
193
- - test/fixtures/no-header.csv
172
+ - test/collector/test_dir.rb
173
+ - test/collector/test_objectspace.rb
174
+ - test/fixtures/header-label.csv
194
175
  - test/fixtures/header-label.tsv
195
176
  - test/fixtures/header.csv
196
- - test/fixtures/plus.csv
197
- - test/fixtures/header-label.csv
198
177
  - test/fixtures/header.tsv
199
- - test/test-fault-location-detector.rb
178
+ - test/fixtures/no-header.csv
179
+ - test/fixtures/no-header.tsv
180
+ - test/fixtures/plus.csv
181
+ - test/run-test.rb
182
+ - test/test-assertions.rb
183
+ - test/test-attribute-matcher.rb
184
+ - test/test-attribute.rb
200
185
  - test/test-code-snippet.rb
201
- - test/test_error.rb
186
+ - test/test-color-scheme.rb
187
+ - test/test-color.rb
188
+ - test/test-data.rb
202
189
  - test/test-diff.rb
190
+ - test/test-emacs-runner.rb
191
+ - test/test-error.rb
192
+ - test/test-failure.rb
193
+ - test/test-fault-location-detector.rb
194
+ - test/test-fixture.rb
203
195
  - test/test-notification.rb
204
- - test/test-color-scheme.rb
205
196
  - test/test-omission.rb
206
- - test/test-color.rb
207
- homepage: http://test-unit.rubyforge.org/
197
+ - test/test-pending.rb
198
+ - test/test-priority.rb
199
+ - test/test-test-case.rb
200
+ - test/test-test-result.rb
201
+ - test/test-test-suite-creator.rb
202
+ - test/test-test-suite.rb
203
+ - test/testunit-test-util.rb
204
+ - test/ui/test_testrunmediator.rb
205
+ - test/util/test-method-owner-finder.rb
206
+ - test/util/test-output.rb
207
+ - test/util/test_backtracefilter.rb
208
+ - test/util/test_observable.rb
209
+ - test/util/test_procwrapper.rb
210
+ homepage: http://rubygems.org/gems/test-unit
208
211
  licenses:
209
- - Ruby's and PSFL (lib/test/unit/diff.rb)
212
+ - Ruby
213
+ - PSFL
214
+ metadata: {}
210
215
  post_install_message:
211
216
  rdoc_options: []
212
217
  require_paths:
213
218
  - lib
214
219
  required_ruby_version: !ruby/object:Gem::Requirement
215
- none: false
216
220
  requirements:
217
- - - ! '>='
221
+ - - ">="
218
222
  - !ruby/object:Gem::Version
219
223
  version: '0'
220
224
  required_rubygems_version: !ruby/object:Gem::Requirement
221
- none: false
222
225
  requirements:
223
- - - ! '>='
226
+ - - ">="
224
227
  - !ruby/object:Gem::Version
225
228
  version: '0'
226
229
  requirements: []
227
- rubyforge_project: test-unit
228
- rubygems_version: 1.8.23
230
+ rubyforge_project:
231
+ rubygems_version: 2.2.2
229
232
  signing_key:
230
- specification_version: 3
233
+ specification_version: 4
231
234
  summary: test-unit - Improved version of Test::Unit bundled in Ruby 1.8.x.
232
235
  test_files:
233
- - test/testunit-test-util.rb
234
- - test/test-testcase.rb
235
- - test/ui/test_testrunmediator.rb
236
- - test/test_testresult.rb
236
+ - test/test-assertions.rb
237
+ - test/test-color.rb
238
+ - test/test-code-snippet.rb
239
+ - test/test-test-suite-creator.rb
240
+ - test/test-test-result.rb
241
+ - test/test-error.rb
242
+ - test/test-failure.rb
243
+ - test/run-test.rb
237
244
  - test/test-pending.rb
238
- - test/test-emacs-runner.rb
239
- - test/test-fixture.rb
240
- - test/test-attribute.rb
245
+ - test/test-color-scheme.rb
241
246
  - test/test-attribute-matcher.rb
242
- - test/test_failure.rb
247
+ - test/testunit-test-util.rb
243
248
  - test/test-data.rb
244
- - test/test_testsuite.rb
245
- - test/collector/test_objectspace.rb
246
- - test/collector/test-descendant.rb
247
- - test/collector/test_dir.rb
248
- - test/collector/test-load.rb
249
- - test/run-test.rb
250
- - test/test-assertions.rb
251
- - test/test-priority.rb
252
- - test/util/test_backtracefilter.rb
253
- - test/util/test_observable.rb
254
- - test/util/test_procwrapper.rb
249
+ - test/ui/test_testrunmediator.rb
255
250
  - test/util/test-method-owner-finder.rb
256
251
  - test/util/test-output.rb
257
- - test/fixtures/no-header.tsv
252
+ - test/util/test_observable.rb
253
+ - test/util/test_backtracefilter.rb
254
+ - test/util/test_procwrapper.rb
255
+ - test/test-omission.rb
256
+ - test/test-test-case.rb
257
+ - test/test-fixture.rb
258
258
  - test/fixtures/no-header.csv
259
259
  - test/fixtures/header-label.tsv
260
- - test/fixtures/header.csv
261
260
  - test/fixtures/plus.csv
261
+ - test/fixtures/no-header.tsv
262
262
  - test/fixtures/header-label.csv
263
+ - test/fixtures/header.csv
263
264
  - test/fixtures/header.tsv
264
- - test/test-fault-location-detector.rb
265
- - test/test-code-snippet.rb
266
- - test/test_error.rb
265
+ - test/collector/test-descendant.rb
266
+ - test/collector/test_objectspace.rb
267
+ - test/collector/test-load.rb
268
+ - test/collector/test_dir.rb
269
+ - test/test-priority.rb
270
+ - test/test-test-suite.rb
267
271
  - test/test-diff.rb
272
+ - test/test-emacs-runner.rb
273
+ - test/test-attribute.rb
274
+ - test/test-fault-location-detector.rb
268
275
  - test/test-notification.rb
269
- - test/test-color-scheme.rb
270
- - test/test-omission.rb
271
- - test/test-color.rb
272
276
  has_rdoc: