test-unit 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,15 @@
1
- === 2.1.0 / 2010-XX-XX
1
+ === 2.1.1 / 2010-07-29
2
2
 
3
- * X bug fixes
3
+ * 1 bug fix
4
+ * [test-unit-users-en:00026] re-work tap runner.
5
+ [Daniel Berger]
6
+
7
+ * Thanks
8
+ * Daniel Berger
9
+
10
+ === 2.1.0 / 2010-07-17
11
+
12
+ * 1 bug fix
4
13
  * [#28267] global config file ignored
5
14
  [Daniel Berger]
6
15
 
@@ -101,6 +101,7 @@ test/test_failure.rb
101
101
  test/test_testresult.rb
102
102
  test/test_testsuite.rb
103
103
  test/testunit-test-util.rb
104
+ test/ui/test_tap.rb
104
105
  test/ui/test_testrunmediator.rb
105
106
  test/util/test-method-owner-finder.rb
106
107
  test/util/test-output.rb
@@ -76,11 +76,11 @@ require "test/unit"</pre>
76
76
  <p>
77
77
  This package provides core feature.
78
78
  </p>
79
- <h2 id="test-unit-latest">test-unit: The latest release</h2>
79
+ <h3 id="test-unit-latest">test-unit: The latest release</h3>
80
80
  <p>
81
- 2.1.0 is the latest release. It had been released at 2010-07-17.
81
+ 2.1.1 is the latest release. It had been released at 2010-07-29.
82
82
  </p>
83
- <h2 id="test-unit-install">test-unit: Install</h2>
83
+ <h3 id="test-unit-install">test-unit: Install</h3>
84
84
  <p>
85
85
  Install:
86
86
  <pre class="command">% sudo gem install test-unit</pre>
@@ -90,11 +90,11 @@ require "test/unit"</pre>
90
90
  <p>
91
91
  This is a meta package to use all extension packages described in the below.
92
92
  </p>
93
- <h2 id="test-unit-full-latest">test-unit-full: The latest release</h2>
93
+ <h3 id="test-unit-full-latest">test-unit-full: The latest release</h3>
94
94
  <p>
95
95
  0.0.2 is the latest release. It had been released at 2010-07-17.
96
96
  </p>
97
- <h2 id="test-unit-full-install">test-unit-full: Install</h2>
97
+ <h3 id="test-unit-full-install">test-unit-full: Install</h3>
98
98
  <p>
99
99
  Install:
100
100
  <pre class="command">% sudo gem install test-unit-full</pre>
@@ -110,11 +110,11 @@ require "test/unit"</pre>
110
110
  src="test-unit-notify/screenshot/notify-on-gnome.png" />
111
111
  This package provides a test notifier.
112
112
  </p>
113
- <h2 id="test-unit-notify-latest">test-unit-notify: The latest release</h2>
113
+ <h3 id="test-unit-notify-latest">test-unit-notify: The latest release</h3>
114
114
  <p>
115
115
  0.0.1 is the latest release. It had been released at 2010-07-17.
116
116
  </p>
117
- <h2 id="test-unit-notify-install">test-unit-notify: Install</h2>
117
+ <h3 id="test-unit-notify-install">test-unit-notify: Install</h3>
118
118
  <p>
119
119
  Install:
120
120
  <pre class="command">% sudo gem install test-unit-notify</pre>
@@ -131,11 +131,11 @@ require "test/unit"</pre>
131
131
  <p>
132
132
  This package provides a GTK+ based test runner.
133
133
  </p>
134
- <h2 id="test-unit-gtk2-latest">test-unit-gtk2: The latest release</h2>
134
+ <h3 id="test-unit-gtk2-latest">test-unit-gtk2: The latest release</h3>
135
135
  <p>
136
136
  0.0.1 is the latest release. It had been released at 2008-06-17.
137
137
  </p>
138
- <h2 id="test-unit-gtk2-install">test-unit-gtk2: Install</h2>
138
+ <h3 id="test-unit-gtk2-install">test-unit-gtk2: Install</h3>
139
139
  <p>
140
140
  Install:
141
141
  <pre class="command">% sudo gem install test-unit-gtk2</pre>
@@ -152,11 +152,11 @@ require "test/unit"</pre>
152
152
  <p>
153
153
  This package provides a Tk based test runner.
154
154
  </p>
155
- <h2 id="test-unit-tk-latest">test-unit-tk: The latest release</h2>
155
+ <h3 id="test-unit-tk-latest">test-unit-tk: The latest release</h3>
156
156
  <p>
157
157
  0.0.1 is the latest release. It had been released at 2008-06-17.
158
158
  </p>
159
- <h2 id="test-unit-tk-install">test-unit-tk: Install</h2>
159
+ <h3 id="test-unit-tk-install">test-unit-tk: Install</h3>
160
160
  <p>
161
161
  Install:
162
162
  <pre class="command">% sudo gem install test-unit-tk</pre>
@@ -173,11 +173,11 @@ require "test/unit"</pre>
173
173
  <p>
174
174
  This package provides a FOX Toolkit based test runner.
175
175
  </p>
176
- <h2 id="test-unit-fox-latest">test-unit-fox: The latest release</h2>
176
+ <h3 id="test-unit-fox-latest">test-unit-fox: The latest release</h3>
177
177
  <p>
178
178
  0.0.1 is the latest release. It had been released at 2008-06-17.
179
179
  </p>
180
- <h2 id="test-unit-fox-install">test-unit-fox: Install</h2>
180
+ <h3 id="test-unit-fox-install">test-unit-fox: Install</h3>
181
181
  <p>
182
182
  Install:
183
183
  <pre class="command">% sudo gem install test-unit-fox</pre>
@@ -195,7 +195,7 @@ require "test/unit"</pre>
195
195
  Test::Unit welcome to your contributions.
196
196
  </p>
197
197
 
198
- <h2 id="repository">Repositories</h2>
198
+ <h3 id="repository">Repositories</h3>
199
199
  <p>
200
200
  Test::Unit uses Subverseion repository on RubyForge. Here are a list to checkout each package.
201
201
  </p>
@@ -89,11 +89,11 @@ require "test/unit"</pre>
89
89
  <li>...</li>
90
90
  </ul>
91
91
  </p>
92
- <h2 id="test-unit-latest">test-unit最新リリース</h2>
92
+ <h3 id="test-unit-latest">test-unit最新リリース</h3>
93
93
  <p>
94
- 2010-07-17にリリースされた2.1.0が最新リリースです。
94
+ 2010-07-29にリリースされた2.1.1が最新リリースです。
95
95
  </p>
96
- <h2 id="test-unit-install">test-unitのインストール</h2>
96
+ <h3 id="test-unit-install">test-unitのインストール</h3>
97
97
  <p>
98
98
  インストール:
99
99
  <pre class="command">% sudo gem install test-unit</pre>
@@ -103,11 +103,11 @@ require "test/unit"</pre>
103
103
  <p>
104
104
  以下の拡張パッケージをまとめてインストールするためのメタパッケージです。
105
105
  </p>
106
- <h2 id="test-unit-full-latest">test-unit-full最新リリース</h2>
106
+ <h3 id="test-unit-full-latest">test-unit-full最新リリース</h3>
107
107
  <p>
108
108
  2010-07-17にリリースされた0.0.2が最新リリースです。
109
109
  </p>
110
- <h2 id="test-unit-full-install">test-unit-fullのインストール</h2>
110
+ <h3 id="test-unit-full-install">test-unit-fullのインストール</h3>
111
111
  <p>
112
112
  インストール:
113
113
  <pre class="command">% sudo gem install test-unit-full</pre>
@@ -121,7 +121,7 @@ require "test/unit"</pre>
121
121
  <p>
122
122
  <img class="eye-catch" alt="スクリーンショット"
123
123
  src="test-unit-notify/screenshot/notify-on-gnome.png" />
124
- テストの実行結果をポップアップで通知します。通知方法は環境によってことなります。
124
+ テストの実行結果をポップアップで通知します。通知方法は環境によって異なります。
125
125
  <dl class="feature-list">
126
126
  <dt>GNOMEやXfceやKDEなどのX Window Systemベースの環境</dt>
127
127
  <dd>notify-sendを使ってD-Bus経由でnotification-daemonにリクエストを送ることにより通知します。notify-sendコマンドが無かったり、notification-daemonが動いていない場合は利用できません。</dd>
@@ -131,11 +131,11 @@ require "test/unit"</pre>
131
131
  <dd>どうやるのがいいのでしょうか。Growl for Windows?(未実装)</dd>
132
132
  </dl>
133
133
  </p>
134
- <h2 id="test-unit-notify-latest">test-unit-notify最新リリース</h2>
134
+ <h3 id="test-unit-notify-latest">test-unit-notify最新リリース</h3>
135
135
  <p>
136
136
  2010-07-17にリリースされた0.0.1が最新リリースです。
137
137
  </p>
138
- <h2 id="test-unit-notify-install">test-unit-notifyのインストール</h2>
138
+ <h3 id="test-unit-notify-install">test-unit-notifyのインストール</h3>
139
139
  <p>
140
140
  インストール:
141
141
  <pre class="command">% sudo gem install test-unit-notify</pre>
@@ -152,11 +152,11 @@ require "test/unit"</pre>
152
152
  <p>
153
153
  GTK+を用いて実装されたGUIのテスト実行機能です。
154
154
  </p>
155
- <h2 id="test-unit-gtk2-latest">test-unit-gtk2最新リリース</h2>
155
+ <h3 id="test-unit-gtk2-latest">test-unit-gtk2最新リリース</h3>
156
156
  <p>
157
157
  2008-06-17にリリースされた0.0.1が最新リリースです。
158
158
  </p>
159
- <h2 id="test-unit-gtk2-install">test-unit-gtk2のインストール</h2>
159
+ <h3 id="test-unit-gtk2-install">test-unit-gtk2のインストール</h3>
160
160
  <p>
161
161
  インストール:
162
162
  <pre class="command">% sudo gem install test-unit-gtk2</pre>
@@ -174,11 +174,11 @@ require "test/unit"</pre>
174
174
  <p>
175
175
  Tkを用いて実装されたGUIのテスト実行機能です。
176
176
  </p>
177
- <h2 id="test-unit-tk-latest">test-unit-tk最新リリース</h2>
177
+ <h3 id="test-unit-tk-latest">test-unit-tk最新リリース</h3>
178
178
  <p>
179
179
  2008-06-17にリリースされた0.0.1が最新リリースです。
180
180
  </p>
181
- <h2 id="test-unit-tk-install">test-unit-tkのインストール</h2>
181
+ <h3 id="test-unit-tk-install">test-unit-tkのインストール</h3>
182
182
  <p>
183
183
  インストール:
184
184
  <pre class="command">% sudo gem install test-unit-tk</pre>
@@ -195,11 +195,11 @@ require "test/unit"</pre>
195
195
  <p>
196
196
  FOX Toolkitを用いて実装されたGUIのテスト実行機能です。
197
197
  </p>
198
- <h2 id="test-unit-fox-latest">test-unit-fox最新リリース</h2>
198
+ <h3 id="test-unit-fox-latest">test-unit-fox最新リリース</h3>
199
199
  <p>
200
200
  2008-06-17にリリースされた0.0.1が最新リリースです。
201
201
  </p>
202
- <h2 id="test-unit-fox-install">test-unit-foxのインストール</h2>
202
+ <h3 id="test-unit-fox-install">test-unit-foxのインストール</h3>
203
203
  <p>
204
204
  インストール:
205
205
  <pre class="command">% sudo gem install test-unit-fox</pre>
@@ -218,7 +218,7 @@ require "test/unit"</pre>
218
218
  以下は開発に必要となる情報です。
219
219
  </p>
220
220
 
221
- <h2 id="repository">リポジトリ</h2>
221
+ <h3 id="repository">リポジトリ</h3>
222
222
  <p>
223
223
  RubyForge上のSubversionリポジトリを利用しています。チェックアウト方法は以下の通りです。
224
224
  </p>
@@ -33,7 +33,7 @@ div.header div.title
33
33
  text-shadow: 0.1em 0.1em 0.1em rgb(200, 200, 200);
34
34
  margin-top: 20px;
35
35
  margin-left: 50px;
36
- margin-right: 180px;
36
+ margin-right: 210px;
37
37
  height: 65px;
38
38
  }
39
39
 
@@ -1,7 +1,7 @@
1
1
  #--
2
2
  #
3
3
  # Author:: Kouhei Sutou.
4
- # Copyright:: Copyright (c) 2009 Kouhei Sutou <kou@clear-code.com>.
4
+ # Copyright:: Copyright (c) 2009-2010 Kouhei Sutou <kou@clear-code.com>.
5
5
  # License:: Ruby license.
6
6
 
7
7
  require 'test/unit/ui/testrunner'
@@ -24,8 +24,7 @@ module Test
24
24
 
25
25
  # Begins the test run.
26
26
  def start
27
- setup_mediator
28
- result = start_mediator
27
+ result = super
29
28
  def result.passed?
30
29
  true # for prove commend :<
31
30
  end
@@ -2,6 +2,6 @@
2
2
  # HACK: quick and dirty to get integrated into the new project - ryan
3
3
  module Test
4
4
  module Unit
5
- VERSION = '2.1.0'
5
+ VERSION = '2.1.1'
6
6
  end
7
7
  end
@@ -0,0 +1,33 @@
1
+ require 'stringio'
2
+ require 'test/unit/ui/tap/testrunner'
3
+
4
+ class TestTap < Test::Unit::TestCase
5
+ def test_run
6
+ fail_line = nil
7
+ test_case = Class.new(Test::Unit::TestCase) do
8
+ def test_success
9
+ assert_equal(3, 1 + 2)
10
+ end
11
+
12
+ def test_fail; assert_equal(3, 1 - 2); end; fail_line = __LINE__
13
+ end
14
+ output = StringIO.new
15
+ runner = Test::Unit::UI::Tap::TestRunner.new(test_case.suite,
16
+ :output => output)
17
+ result = runner.start; start_line = __LINE__
18
+ assert_equal(<<-EOR, output.string.gsub(/[\d\.]+ seconds/, "0.001 seconds"))
19
+ 1..2
20
+ not ok 1 - test_fail(): <3> expected but was
21
+ # Failure:
22
+ # test_fail()
23
+ # [#{__FILE__}:#{fail_line}:in `test_fail'
24
+ # #{__FILE__}:#{start_line}:in `test_run']:
25
+ # <3> expected but was
26
+ # <-1>.
27
+ ok 2 - test_success()
28
+ # Finished in 0.001 seconds.
29
+ # 2 tests, 2 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
30
+ EOR
31
+ assert_true(result.passed?)
32
+ end
33
+ end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 9
4
5
  prerelease: false
5
6
  segments:
6
7
  - 2
7
8
  - 1
8
- - 0
9
- version: 2.1.0
9
+ - 1
10
+ version: 2.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Kouhei Sutou
@@ -15,16 +16,18 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-07-17 00:00:00 +09:00
19
+ date: 2010-07-29 00:00:00 +09:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: rubyforge
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
25
27
  requirements:
26
28
  - - ">="
27
29
  - !ruby/object:Gem::Version
30
+ hash: 7
28
31
  segments:
29
32
  - 2
30
33
  - 0
@@ -36,9 +39,11 @@ dependencies:
36
39
  name: hoe
37
40
  prerelease: false
38
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
39
43
  requirements:
40
44
  - - ">="
41
45
  - !ruby/object:Gem::Version
46
+ hash: 21
42
47
  segments:
43
48
  - 2
44
49
  - 6
@@ -168,6 +173,7 @@ files:
168
173
  - test/test_testresult.rb
169
174
  - test/test_testsuite.rb
170
175
  - test/testunit-test-util.rb
176
+ - test/ui/test_tap.rb
171
177
  - test/ui/test_testrunmediator.rb
172
178
  - test/util/test-method-owner-finder.rb
173
179
  - test/util/test-output.rb
@@ -185,28 +191,33 @@ rdoc_options:
185
191
  require_paths:
186
192
  - lib
187
193
  required_ruby_version: !ruby/object:Gem::Requirement
194
+ none: false
188
195
  requirements:
189
196
  - - ">="
190
197
  - !ruby/object:Gem::Version
198
+ hash: 3
191
199
  segments:
192
200
  - 0
193
201
  version: "0"
194
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
+ none: false
195
204
  requirements:
196
205
  - - ">="
197
206
  - !ruby/object:Gem::Version
207
+ hash: 3
198
208
  segments:
199
209
  - 0
200
210
  version: "0"
201
211
  requirements: []
202
212
 
203
213
  rubyforge_project: test-unit
204
- rubygems_version: 1.3.6
214
+ rubygems_version: 1.3.7
205
215
  signing_key:
206
216
  specification_version: 3
207
217
  summary: Test::Unit 2.x - Improved version of Test::Unit bundled in Ruby 1.8.x
208
218
  test_files:
209
219
  - test/ui/test_testrunmediator.rb
220
+ - test/ui/test_tap.rb
210
221
  - test/test_testresult.rb
211
222
  - test/test_failure.rb
212
223
  - test/test_testsuite.rb