minitest-server 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +6 -0
- data/lib/minitest/server.rb +1 -1
- data/lib/minitest/server_plugin.rb +22 -0
- metadata +4 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5040b93898a4fe4302eef8404b34015bb853dcb5
|
4
|
+
data.tar.gz: 07f6100bbaaa7774496fe1d3abf1755647a4983e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31a243270996eeb10b081cb39823454c1896f23d2a5c5baaf65ee0891e48e7b10104b2b5b3c591a04d8deef52347a5a9bca154141490bd2e9ed0bac96ef06dad
|
7
|
+
data.tar.gz: 546afb3032ff21fd5816c899892279e240fc90e0b5f0c276dff28b452272fd9ae460e4579b7b345c0181fe8bb8437c4f93cbc2be5e0db1ba1053bb8e8ba87e14
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
data/lib/minitest/server.rb
CHANGED
@@ -32,9 +32,31 @@ class Minitest::ServerReporter < Minitest::AbstractReporter
|
|
32
32
|
r = result
|
33
33
|
c = r.class
|
34
34
|
file, = c.instance_method(r.name).source_location
|
35
|
+
sanitize r.failures
|
36
|
+
|
35
37
|
@mt_server.result file, c.name, r.name, r.failures, r.assertions, r.time
|
36
38
|
end
|
37
39
|
|
40
|
+
def sanitize failures
|
41
|
+
failures.map! { |e|
|
42
|
+
case e
|
43
|
+
when Minitest::UnexpectedError then
|
44
|
+
# embedded exception might not be able to be marshaled.
|
45
|
+
bt = e.exception.backtrace
|
46
|
+
|
47
|
+
ex = e.exception = RuntimeError.new e.message
|
48
|
+
ex.set_backtrace bt
|
49
|
+
|
50
|
+
if ex.instance_variables.include? :@bindings then # web-console is Evil
|
51
|
+
ex.instance_variable_set :@bindings, nil
|
52
|
+
e.instance_variable_set :@bindings, nil
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
e
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
38
60
|
def report
|
39
61
|
@mt_server.report
|
40
62
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
|
30
30
|
VpzF30vNaJK6ZT7xlIsIlwmH
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2015-
|
32
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: minitest
|
@@ -117,10 +117,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.4.
|
120
|
+
rubygems_version: 2.4.5
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: minitest-server provides a client/server setup with your minitest process,
|
124
124
|
allowing your test run to send its results directly to a handler.
|
125
|
-
test_files:
|
126
|
-
- test/minitest/test_server.rb
|
125
|
+
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|