minitest-reporters 0.14.11 → 0.14.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/minitest/reporters/junit_reporter.rb +14 -6
- data/lib/minitest/reporters/version.rb +1 -1
- metadata +19 -34
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: aa1d9b4baa08ad5d944a2f778784977e8ca800b9
|
4
|
+
data.tar.gz: cad0dd04fbc13df1c783fcc5adf3a8bd2d693721
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9d91a15d719f263fdda0258ff115921b07852c97f76323968d67bb75a5b12af0e53fed36c51c5ff8713e1693833228bf55ae4136998c4d9e311ace55c0b61a56
|
7
|
+
data.tar.gz: c171d520a4b89cfa21fc9c2703638b3855795be0b112e8ac5c2c3b03f53aeb55e578b6f6157ac3ac66ca145d2f9bf1fc439204753e500821e59b40f372499e57
|
@@ -29,9 +29,12 @@ module MiniTest
|
|
29
29
|
|
30
30
|
xml = Builder::XmlMarkup.new(:indent => 2)
|
31
31
|
xml.instruct!
|
32
|
-
xml.testsuite(:name => suite, :skipped => suite_result[:skip_count], :failures => suite_result[:failure_count],
|
32
|
+
xml.testsuite(:name => suite, :skipped => suite_result[:skip_count], :failures => suite_result[:failure_count],
|
33
|
+
:errors => suite_result[:error_count], :tests => suite_result[:test_count],
|
34
|
+
:assertions => suite_result[:assertion_count], :time => suite_result[:time]) do
|
33
35
|
tests.each do |test, test_runner|
|
34
|
-
xml.testcase(:name => test_runner.test, :classname => suite, :assertions => test_runner.assertions
|
36
|
+
xml.testcase(:name => test_runner.test, :classname => suite, :assertions => test_runner.assertions,
|
37
|
+
:time => test_runner.time) do
|
35
38
|
xml << xml_message_for(test_runner) if test_runner.result != :pass
|
36
39
|
end
|
37
40
|
end
|
@@ -40,11 +43,12 @@ module MiniTest
|
|
40
43
|
end
|
41
44
|
end
|
42
45
|
|
43
|
-
|
46
|
+
private
|
44
47
|
|
45
48
|
def xml_message_for(test_runner)
|
46
49
|
# This is a trick lifted from ci_reporter
|
47
50
|
xml = Builder::XmlMarkup.new(:indent => 2, :margin => 2)
|
51
|
+
|
48
52
|
def xml.trunc!(txt)
|
49
53
|
txt.sub(/\n.*/m, '...')
|
50
54
|
end
|
@@ -72,9 +76,12 @@ module MiniTest
|
|
72
76
|
e = test_runner.exception
|
73
77
|
|
74
78
|
case test_runner.result
|
75
|
-
when :pass then
|
76
|
-
|
77
|
-
when :
|
79
|
+
when :pass then
|
80
|
+
nil
|
81
|
+
when :skip then
|
82
|
+
"Skipped:\n#{test}(#{suite}) [#{location(e)}]:\n#{e.message}\n"
|
83
|
+
when :failure then
|
84
|
+
"Failure:\n#{test}(#{suite}) [#{location(e)}]:\n#{e.message}\n"
|
78
85
|
when :error
|
79
86
|
bt = filter_backtrace(test_runner.exception.backtrace).join "\n "
|
80
87
|
"Error:\n#{test}(#{suite}):\n#{e.class}: #{e.message}\n #{bt}\n"
|
@@ -97,6 +104,7 @@ module MiniTest
|
|
97
104
|
result[:"#{test_runner.result}_count"] += 1
|
98
105
|
result[:assertion_count] += test_runner.assertions
|
99
106
|
result[:test_count] += 1
|
107
|
+
result[:time] += test_runner.time
|
100
108
|
end
|
101
109
|
result
|
102
110
|
end
|
metadata
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-reporters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
5
|
-
prerelease:
|
4
|
+
version: 0.14.12
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alexander Kern
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: minitest
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '2.12'
|
22
20
|
- - <
|
@@ -25,9 +23,8 @@ dependencies:
|
|
25
23
|
type: :runtime
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
|
-
- -
|
27
|
+
- - '>='
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: '2.12'
|
33
30
|
- - <
|
@@ -36,81 +33,71 @@ dependencies:
|
|
36
33
|
- !ruby/object:Gem::Dependency
|
37
34
|
name: ansi
|
38
35
|
requirement: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
36
|
requirements:
|
41
|
-
- -
|
37
|
+
- - '>='
|
42
38
|
- !ruby/object:Gem::Version
|
43
39
|
version: '0'
|
44
40
|
type: :runtime
|
45
41
|
prerelease: false
|
46
42
|
version_requirements: !ruby/object:Gem::Requirement
|
47
|
-
none: false
|
48
43
|
requirements:
|
49
|
-
- -
|
44
|
+
- - '>='
|
50
45
|
- !ruby/object:Gem::Version
|
51
46
|
version: '0'
|
52
47
|
- !ruby/object:Gem::Dependency
|
53
48
|
name: powerbar
|
54
49
|
requirement: !ruby/object:Gem::Requirement
|
55
|
-
none: false
|
56
50
|
requirements:
|
57
|
-
- -
|
51
|
+
- - '>='
|
58
52
|
- !ruby/object:Gem::Version
|
59
53
|
version: '0'
|
60
54
|
type: :runtime
|
61
55
|
prerelease: false
|
62
56
|
version_requirements: !ruby/object:Gem::Requirement
|
63
|
-
none: false
|
64
57
|
requirements:
|
65
|
-
- -
|
58
|
+
- - '>='
|
66
59
|
- !ruby/object:Gem::Version
|
67
60
|
version: '0'
|
68
61
|
- !ruby/object:Gem::Dependency
|
69
62
|
name: builder
|
70
63
|
requirement: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
64
|
requirements:
|
73
|
-
- -
|
65
|
+
- - '>='
|
74
66
|
- !ruby/object:Gem::Version
|
75
67
|
version: '0'
|
76
68
|
type: :runtime
|
77
69
|
prerelease: false
|
78
70
|
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
71
|
requirements:
|
81
|
-
- -
|
72
|
+
- - '>='
|
82
73
|
- !ruby/object:Gem::Version
|
83
74
|
version: '0'
|
84
75
|
- !ruby/object:Gem::Dependency
|
85
76
|
name: maruku
|
86
77
|
requirement: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
78
|
requirements:
|
89
|
-
- -
|
79
|
+
- - '>='
|
90
80
|
- !ruby/object:Gem::Version
|
91
81
|
version: '0'
|
92
82
|
type: :development
|
93
83
|
prerelease: false
|
94
84
|
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
85
|
requirements:
|
97
|
-
- -
|
86
|
+
- - '>='
|
98
87
|
- !ruby/object:Gem::Version
|
99
88
|
version: '0'
|
100
89
|
- !ruby/object:Gem::Dependency
|
101
90
|
name: rake
|
102
91
|
requirement: !ruby/object:Gem::Requirement
|
103
|
-
none: false
|
104
92
|
requirements:
|
105
|
-
- -
|
93
|
+
- - '>='
|
106
94
|
- !ruby/object:Gem::Version
|
107
95
|
version: '0'
|
108
96
|
type: :development
|
109
97
|
prerelease: false
|
110
98
|
version_requirements: !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
99
|
requirements:
|
113
|
-
- -
|
100
|
+
- - '>='
|
114
101
|
- !ruby/object:Gem::Version
|
115
102
|
version: '0'
|
116
103
|
description: Death to haphazard monkey-patching! Extend MiniTest through simple hooks.
|
@@ -152,27 +139,26 @@ files:
|
|
152
139
|
- test/unit/minitest/reporters_test.rb
|
153
140
|
homepage: https://github.com/CapnKernul/minitest-reporters
|
154
141
|
licenses: []
|
142
|
+
metadata: {}
|
155
143
|
post_install_message:
|
156
144
|
rdoc_options: []
|
157
145
|
require_paths:
|
158
146
|
- lib
|
159
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
160
|
-
none: false
|
161
148
|
requirements:
|
162
|
-
- -
|
149
|
+
- - '>='
|
163
150
|
- !ruby/object:Gem::Version
|
164
151
|
version: '0'
|
165
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
|
-
none: false
|
167
153
|
requirements:
|
168
|
-
- -
|
154
|
+
- - '>='
|
169
155
|
- !ruby/object:Gem::Version
|
170
156
|
version: '0'
|
171
157
|
requirements: []
|
172
158
|
rubyforge_project: minitest-reporters
|
173
|
-
rubygems_version:
|
159
|
+
rubygems_version: 2.0.3
|
174
160
|
signing_key:
|
175
|
-
specification_version:
|
161
|
+
specification_version: 4
|
176
162
|
summary: Create customizable MiniTest output formats
|
177
163
|
test_files:
|
178
164
|
- test/gallery/bad_test.rb
|
@@ -181,4 +167,3 @@ test_files:
|
|
181
167
|
- test/unit/minitest/extensible_backtrace_filter_test.rb
|
182
168
|
- test/unit/minitest/reporter_test.rb
|
183
169
|
- test/unit/minitest/reporters_test.rb
|
184
|
-
has_rdoc:
|