test-unit 2.2.0 → 2.3.0

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.
@@ -6,7 +6,7 @@ require 'test/unit'
6
6
 
7
7
  module Test
8
8
  module Unit
9
- class TC_TestSuite < TestCase
9
+ class TestTestSuite < TestCase
10
10
  def setup
11
11
  @testcase1 = Class.new(TestCase) do
12
12
  def test_succeed1
@@ -55,31 +55,39 @@ module Test
55
55
  def test_run
56
56
  progress = []
57
57
  suite = @testcase1.suite
58
+ tests = suite.tests.dup
58
59
  result = TestResult.new
59
60
  suite.run(result) { |*values| progress << values }
60
-
61
+
61
62
  assert_equal(2, result.run_count, "Should have had four test runs")
62
63
  assert_equal(1, result.failure_count, "Should have had one test failure")
63
64
  assert_equal(0, result.error_count, "Should have had one test error")
64
65
  assert_equal([[TestSuite::STARTED, suite.name],
65
- [TestCase::STARTED, "test_fail(#{suite.name})"],
66
- [TestCase::FINISHED, "test_fail(#{suite.name})"],
67
- [TestCase::STARTED, "test_succeed1(#{suite.name})"],
68
- [TestCase::FINISHED, "test_succeed1(#{suite.name})"],
69
- [TestSuite::FINISHED, suite.name]],
70
- progress, "Should have had the correct progress")
71
-
66
+ [TestSuite::STARTED_OBJECT, suite],
67
+ [TestCase::STARTED, "test_fail(#{suite.name})"],
68
+ [TestCase::STARTED_OBJECT, tests[0]],
69
+ [TestCase::FINISHED, "test_fail(#{suite.name})"],
70
+ [TestCase::FINISHED_OBJECT, tests[0]],
71
+ [TestCase::STARTED, "test_succeed1(#{suite.name})"],
72
+ [TestCase::STARTED_OBJECT, tests[1]],
73
+ [TestCase::FINISHED, "test_succeed1(#{suite.name})"],
74
+ [TestCase::FINISHED_OBJECT, tests[1]],
75
+ [TestSuite::FINISHED, suite.name],
76
+ [TestSuite::FINISHED_OBJECT, suite]],
77
+ progress, "Should have had the correct progress")
78
+
72
79
  suite = TestSuite.new
73
80
  suite << @testcase1.suite
74
81
  suite << @testcase2.suite
75
82
  result = TestResult.new
76
83
  progress = []
77
84
  suite.run(result) { |*values| progress << values }
78
-
85
+
79
86
  assert_equal(4, result.run_count, "Should have had four test runs")
80
87
  assert_equal(1, result.failure_count, "Should have had one test failure")
81
88
  assert_equal(1, result.error_count, "Should have had one test error")
82
- assert_equal(14, progress.size, "Should have had the correct number of progress calls")
89
+ assert_equal(28, progress.size,
90
+ "Should have had the correct number of progress calls")
83
91
  end
84
92
 
85
93
  def test_empty?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
5
- prerelease: false
4
+ hash: 3
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 2.2.0
10
+ version: 2.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kouhei Sutou
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-02-14 00:00:00 +09:00
19
+ date: 2011-04-18 00:00:00 +09:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -87,6 +87,7 @@ files:
87
87
  - html/favicon.ico
88
88
  - html/favicon.png
89
89
  - html/favicon.svg
90
+ - html/github-logo.png
90
91
  - html/heading-mark.png
91
92
  - html/heading-mark.svg
92
93
  - html/index.html
@@ -116,8 +117,10 @@ files:
116
117
  - lib/test/unit/collector/dir.rb
117
118
  - lib/test/unit/collector/load.rb
118
119
  - lib/test/unit/collector/objectspace.rb
120
+ - lib/test/unit/collector/xml.rb
119
121
  - lib/test/unit/color-scheme.rb
120
122
  - lib/test/unit/color.rb
123
+ - lib/test/unit/data.rb
121
124
  - lib/test/unit/diff.rb
122
125
  - lib/test/unit/error.rb
123
126
  - lib/test/unit/exceptionhandler.rb
@@ -130,9 +133,11 @@ files:
130
133
  - lib/test/unit/runner/console.rb
131
134
  - lib/test/unit/runner/emacs.rb
132
135
  - lib/test/unit/runner/tap.rb
136
+ - lib/test/unit/runner/xml.rb
133
137
  - lib/test/unit/testcase.rb
134
138
  - lib/test/unit/testresult.rb
135
139
  - lib/test/unit/testsuite.rb
140
+ - lib/test/unit/testsuitecreator.rb
136
141
  - lib/test/unit/ui/console/outputlevel.rb
137
142
  - lib/test/unit/ui/console/testrunner.rb
138
143
  - lib/test/unit/ui/emacs/testrunner.rb
@@ -140,6 +145,7 @@ files:
140
145
  - lib/test/unit/ui/testrunner.rb
141
146
  - lib/test/unit/ui/testrunnermediator.rb
142
147
  - lib/test/unit/ui/testrunnerutilities.rb
148
+ - lib/test/unit/ui/xml/testrunner.rb
143
149
  - lib/test/unit/util/backtracefilter.rb
144
150
  - lib/test/unit/util/method-owner-finder.rb
145
151
  - lib/test/unit/util/observable.rb
@@ -155,11 +161,13 @@ files:
155
161
  - test/collector/test-load.rb
156
162
  - test/collector/test_dir.rb
157
163
  - test/collector/test_objectspace.rb
164
+ - test/fixtures/plus.csv
158
165
  - test/run-test.rb
159
166
  - test/test-assertions.rb
160
167
  - test/test-attribute.rb
161
168
  - test/test-color-scheme.rb
162
169
  - test/test-color.rb
170
+ - test/test-data.rb
163
171
  - test/test-diff.rb
164
172
  - test/test-emacs-runner.rb
165
173
  - test/test-fixture.rb
@@ -211,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
219
  requirements: []
212
220
 
213
221
  rubyforge_project: test-unit
214
- rubygems_version: 1.3.7
222
+ rubygems_version: 1.6.2
215
223
  signing_key:
216
224
  specification_version: 3
217
225
  summary: Test::Unit 2.x - Improved version of Test::Unit bundled in Ruby 1.8.x