minitest-reporters 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e292139a737294885c26dbb205df39673aada0a
|
4
|
+
data.tar.gz: 5b10fb975661a7edb04d02e1502e6f23a406b4f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b354f6cd9f35782f35ab6406b561b1331ec3c6ff9de78c967d9280ca99819706c69a9d34461adae317429ffec8615c948e07821b62d4ece234cf25c4ad7801
|
7
|
+
data.tar.gz: eacb9124d652d3c501f8b0caaaf141940848132ff8147e696ce8b4834f8278c85eab1a216c19ba07b14a04660d768cec6706aad283dab2506e542f7c19fe58e0
|
@@ -204,9 +204,9 @@ module Minitest
|
|
204
204
|
def total_time_to_hms
|
205
205
|
return ('%.2fs' % total_time) if total_time < 1
|
206
206
|
|
207
|
-
hours = total_time / (60 * 60)
|
208
|
-
minutes = ((total_time / 60) % 60).to_s.rjust(2,'0')
|
209
|
-
seconds = (total_time % 60).to_s.rjust(2,'0')
|
207
|
+
hours = (total_time / (60 * 60)).round
|
208
|
+
minutes = ((total_time / 60) % 60).round.to_s.rjust(2,'0')
|
209
|
+
seconds = (total_time % 60).round.to_s.rjust(2,'0')
|
210
210
|
|
211
211
|
"#{ hours }h#{ minutes }m#{ seconds }s"
|
212
212
|
end
|
@@ -118,10 +118,11 @@ module Minitest
|
|
118
118
|
|
119
119
|
def filename_for(suite)
|
120
120
|
file_counter = 0
|
121
|
-
|
121
|
+
suite_name = suite.to_s[0..240].gsub(/[^a-zA-Z0-9]+/, '-') # restrict max filename length, to be kind to filesystems
|
122
|
+
filename = "TEST-#{suite_name}.xml"
|
122
123
|
while File.exists?(File.join(@reports_path, filename)) # restrict number of tries, to avoid infinite loops
|
123
124
|
file_counter += 1
|
124
|
-
filename = "TEST-#{
|
125
|
+
filename = "TEST-#{suite_name}-#{file_counter}.xml"
|
125
126
|
puts "Too many duplicate files, overwriting earlier report #{filename}" and break if file_counter >= 99
|
126
127
|
end
|
127
128
|
File.join(@reports_path, filename)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-reporters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|