minitest-ci 3.3.0 → 3.4.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.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/lib/minitest/ci_plugin.rb +9 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42c92db568429612057e386f9a1a1d9b168305cf
|
4
|
+
data.tar.gz: 0ba9abb42c7e96e08a7c7d1c163c0370e5368bdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a68bbe37134724056645339a1e884807db3941392b94c1083dd21e8c124accfb6e4f7c55a2f7b1ee47d3cbf098a022e7ef37f1dd4c6853042fd3c008f792abbd
|
7
|
+
data.tar.gz: 911f5316307890b2b8fdb7ee1120d0e6c658d12c03da1213ecb238dbb8388d01bc539037465d0e6dc6ffcb9f62cb21b4f20c26edbfc69425909e12ca7a807606
|
data/README.rdoc
CHANGED
data/lib/minitest/ci_plugin.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
require 'cgi'
|
3
3
|
require 'time'
|
4
|
+
require 'digest'
|
4
5
|
|
5
6
|
module Minitest
|
6
7
|
def self.plugin_ci_options opts, options
|
@@ -82,7 +83,8 @@ module Minitest
|
|
82
83
|
end
|
83
84
|
|
84
85
|
def record result
|
85
|
-
|
86
|
+
key = result.respond_to?(:klass) ? result.klass : result.class
|
87
|
+
results[key] << result
|
86
88
|
end
|
87
89
|
|
88
90
|
##
|
@@ -131,8 +133,13 @@ module Minitest
|
|
131
133
|
[total_time, skips, failures, errors, escape(name), assertions, results.count, timestamp]
|
132
134
|
|
133
135
|
results.each do |result|
|
136
|
+
location = if result.respond_to? :source_location then
|
137
|
+
result.source_location
|
138
|
+
else
|
139
|
+
result.method(result.name).source_location
|
140
|
+
end[0].gsub(base, '')
|
134
141
|
xml << " <testcase time='%6f' file=%p name=%p assertions='%s'>" %
|
135
|
-
[result.time, escape(
|
142
|
+
[result.time, escape(location), escape(result.name), result.assertions]
|
136
143
|
if failure = result.failure
|
137
144
|
label = failure.result_label.downcase
|
138
145
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-ci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zzak
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2018-01-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: 1.3.6
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.6.
|
144
|
+
rubygems_version: 2.6.8
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Minitest JUnit XML formatter
|