test-unit 3.2.0 → 3.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +5 -5
  2. data/COPYING +4 -1
  3. data/README.md +11 -11
  4. data/Rakefile +10 -1
  5. data/doc/text/getting-started.md +246 -0
  6. data/doc/text/news.md +372 -1
  7. data/lib/test/unit.rb +171 -157
  8. data/lib/test/unit/assertions.rb +187 -149
  9. data/lib/test/unit/attribute.rb +71 -2
  10. data/lib/test/unit/autorunner.rb +65 -32
  11. data/lib/test/unit/code-snippet-fetcher.rb +7 -7
  12. data/lib/test/unit/collector/load.rb +8 -13
  13. data/lib/test/unit/data-sets.rb +116 -0
  14. data/lib/test/unit/data.rb +121 -12
  15. data/lib/test/unit/diff.rb +11 -11
  16. data/lib/test/unit/fixture.rb +3 -0
  17. data/lib/test/unit/notification.rb +9 -7
  18. data/lib/test/unit/omission.rb +34 -31
  19. data/lib/test/unit/pending.rb +12 -11
  20. data/lib/test/unit/priority.rb +7 -3
  21. data/lib/test/unit/runner/console.rb +25 -0
  22. data/lib/test/unit/test-suite-creator.rb +22 -8
  23. data/lib/test/unit/testcase.rb +270 -182
  24. data/lib/test/unit/ui/console/testrunner.rb +90 -35
  25. data/lib/test/unit/ui/emacs/testrunner.rb +5 -5
  26. data/lib/test/unit/util/observable.rb +2 -2
  27. data/lib/test/unit/util/output.rb +5 -4
  28. data/lib/test/unit/util/procwrapper.rb +4 -4
  29. data/lib/test/unit/version.rb +1 -1
  30. data/test/collector/test-descendant.rb +4 -0
  31. data/test/collector/test-load.rb +35 -2
  32. data/test/collector/test_dir.rb +5 -4
  33. data/test/collector/test_objectspace.rb +7 -5
  34. data/test/test-assertions.rb +128 -101
  35. data/test/test-code-snippet.rb +42 -0
  36. data/test/test-data.rb +195 -79
  37. data/test/test-priority.rb +19 -8
  38. data/test/test-test-case.rb +111 -3
  39. data/test/test-test-suite.rb +1 -0
  40. data/test/testunit-test-util.rb +2 -0
  41. metadata +38 -37
@@ -67,6 +67,7 @@ module Test
67
67
 
68
68
  def test_run
69
69
  progress = []
70
+ @testcase1.test_order = :alphabetic
70
71
  suite = @testcase1.suite
71
72
  tests = suite.tests.dup
72
73
  result = TestResult.new
@@ -1,3 +1,5 @@
1
+ require "tempfile"
2
+
1
3
  module TestUnitTestUtil
2
4
  private
3
5
  def jruby?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-12 00:00:00.000000000 Z
12
+ date: 2020-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert
@@ -96,7 +96,7 @@ dependencies:
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  description: |
99
- Test::Unit (test-unit) is unit testing framework for Ruby, based on xUnit
99
+ test-unit (Test::Unit) is unit testing framework for Ruby, based on xUnit
100
100
  principles. These were originally designed by Kent Beck, creator of extreme
101
101
  programming software development methodology, for Smalltalk's SUnit. It allows
102
102
  writing tests, checking results and automated testing in Ruby.
@@ -113,6 +113,7 @@ files:
113
113
  - PSFL
114
114
  - README.md
115
115
  - Rakefile
116
+ - doc/text/getting-started.md
116
117
  - doc/text/how-to.md
117
118
  - doc/text/news.md
118
119
  - lib/test-unit.rb
@@ -132,6 +133,7 @@ files:
132
133
  - lib/test/unit/collector/xml.rb
133
134
  - lib/test/unit/color-scheme.rb
134
135
  - lib/test/unit/color.rb
136
+ - lib/test/unit/data-sets.rb
135
137
  - lib/test/unit/data.rb
136
138
  - lib/test/unit/diff.rb
137
139
  - lib/test/unit/error.rb
@@ -212,7 +214,8 @@ homepage: http://test-unit.github.io/
212
214
  licenses:
213
215
  - Ruby
214
216
  - PSFL
215
- metadata: {}
217
+ metadata:
218
+ source_code_uri: https://github.com/test-unit/test-unit
216
219
  post_install_message:
217
220
  rdoc_options: []
218
221
  require_paths:
@@ -228,50 +231,48 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
231
  - !ruby/object:Gem::Version
229
232
  version: '0'
230
233
  requirements: []
231
- rubyforge_project:
232
- rubygems_version: 2.5.1
234
+ rubygems_version: 3.2.0.pre1
233
235
  signing_key:
234
236
  specification_version: 4
235
237
  summary: An xUnit family unit testing framework for Ruby.
236
238
  test_files:
237
- - test/test-code-snippet.rb
238
- - test/test-fault-location-detector.rb
239
- - test/test-attribute.rb
240
- - test/test-priority.rb
241
- - test/test-color-scheme.rb
242
- - test/test-failure.rb
243
- - test/test-color.rb
244
- - test/ui/test_testrunmediator.rb
245
- - test/test-attribute-matcher.rb
246
- - test/test-test-suite.rb
247
- - test/test-test-suite-creator.rb
248
- - test/test-diff.rb
249
- - test/test-emacs-runner.rb
250
- - test/test-data.rb
239
+ - test/collector/test-descendant.rb
240
+ - test/collector/test-load.rb
241
+ - test/collector/test_dir.rb
242
+ - test/collector/test_objectspace.rb
243
+ - test/fixtures/header-label.csv
244
+ - test/fixtures/header-label.tsv
251
245
  - test/fixtures/header.csv
252
246
  - test/fixtures/header.tsv
247
+ - test/fixtures/no-header.csv
253
248
  - test/fixtures/no-header.tsv
254
249
  - test/fixtures/plus.csv
255
- - test/fixtures/no-header.csv
256
- - test/fixtures/header-label.tsv
257
- - test/fixtures/header-label.csv
250
+ - test/run-test.rb
258
251
  - test/test-assertions.rb
259
- - test/test-test-result.rb
260
- - test/testunit-test-util.rb
261
- - test/collector/test-load.rb
262
- - test/collector/test_dir.rb
263
- - test/collector/test_objectspace.rb
264
- - test/collector/test-descendant.rb
252
+ - test/test-attribute-matcher.rb
253
+ - test/test-attribute.rb
254
+ - test/test-code-snippet.rb
255
+ - test/test-color-scheme.rb
256
+ - test/test-color.rb
257
+ - test/test-data.rb
258
+ - test/test-diff.rb
259
+ - test/test-emacs-runner.rb
265
260
  - test/test-error.rb
266
- - test/run-test.rb
267
- - test/test-pending.rb
261
+ - test/test-failure.rb
262
+ - test/test-fault-location-detector.rb
268
263
  - test/test-fixture.rb
269
- - test/util/test-output.rb
270
- - test/util/test-method-owner-finder.rb
271
- - test/util/test_observable.rb
272
- - test/util/test_procwrapper.rb
273
- - test/util/test_backtracefilter.rb
274
264
  - test/test-notification.rb
275
265
  - test/test-omission.rb
266
+ - test/test-pending.rb
267
+ - test/test-priority.rb
276
268
  - test/test-test-case.rb
277
- has_rdoc:
269
+ - test/test-test-result.rb
270
+ - test/test-test-suite-creator.rb
271
+ - test/test-test-suite.rb
272
+ - test/testunit-test-util.rb
273
+ - test/ui/test_testrunmediator.rb
274
+ - test/util/test-method-owner-finder.rb
275
+ - test/util/test-output.rb
276
+ - test/util/test_backtracefilter.rb
277
+ - test/util/test_observable.rb
278
+ - test/util/test_procwrapper.rb