test-unit 3.2.5 → 3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +11 -0
- data/lib/test/unit/collector/load.rb +7 -10
- data/lib/test/unit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ddfe122387606bd5c9d06ffa5943907756becf3
|
4
|
+
data.tar.gz: bee7b843682d5aebca132166cc005e8f534fb55d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b6d4e183f16c8e931f1ca02fb179e45857ea539cfe5a6efe448c7a24caeb691bc6cda85f0ce90305522df2db5fab8a1c39e856ef4bc1e22663863acb9364813
|
7
|
+
data.tar.gz: 5b87675676f620d09cc4580f40f8d8677e91ed9eb01406d91f098b0037b1a16817f80392a3d8cb7133aeb216d10108f86d5feb8cab7184aceccbea355969c967
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 3.2.6 - 2017-09-21 {#version-3-2-6}
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Changed test file require failure to error from omission.
|
8
|
+
[GitHub#154][Patch by naofumi-fujii]
|
9
|
+
|
10
|
+
### Thanks
|
11
|
+
|
12
|
+
* naofumi-fujii
|
13
|
+
|
3
14
|
## 3.2.5 - 2017-06-24 {#version-3-2-5}
|
4
15
|
|
5
16
|
### Improvements
|
@@ -166,11 +166,11 @@ module Test
|
|
166
166
|
return if @require_failed_infos.empty?
|
167
167
|
|
168
168
|
require_failed_infos = @require_failed_infos
|
169
|
-
|
170
|
-
|
169
|
+
require_failed_errors = Class.new(Test::Unit::TestCase)
|
170
|
+
require_failed_errors.class_eval do
|
171
171
|
class << self
|
172
172
|
def name
|
173
|
-
"
|
173
|
+
"RequireFailedErrors"
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
@@ -180,21 +180,18 @@ module Test
|
|
180
180
|
normalized_path = normalized_path.gsub(/\A_+/, '')
|
181
181
|
exception = info[:exception]
|
182
182
|
define_method("test_require_#{normalized_path}") do
|
183
|
-
|
184
|
-
|
183
|
+
raise(exception.class,
|
184
|
+
"failed to load <#{path}>: #{exception.message}",
|
185
|
+
exception.backtrace)
|
185
186
|
end
|
186
187
|
end
|
187
188
|
|
188
189
|
def priority
|
189
190
|
100
|
190
191
|
end
|
191
|
-
|
192
|
-
def filter_backtrace(location)
|
193
|
-
super(@require_failed_exception.backtrace)
|
194
|
-
end
|
195
192
|
end
|
196
193
|
|
197
|
-
add_suite(test_suites,
|
194
|
+
add_suite(test_suites, require_failed_errors.suite)
|
198
195
|
end
|
199
196
|
end
|
200
197
|
end
|
data/lib/test/unit/version.rb
CHANGED
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.
|
4
|
+
version: 3.2.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: 2017-
|
12
|
+
date: 2017-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: power_assert
|