minitest-reporters 1.0.0.beta2 → 1.0.0.beta3
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: 2c95e6d4842a85ba418854eed033f3a3ad7c60a8
|
4
|
+
data.tar.gz: 7bac122561b747d70d191f6baacedc8737232b5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 142b546f61bfbc7e98752dc390fe1c50674c5b33f4c5bd774f5076b351583040485348ea29125f9401ff5349f70d0b7265b8db2511b0654c43c2b96f04048792
|
7
|
+
data.tar.gz: 9902f5a929ce18f82eab997ed37c435d18a46c8264a99ccff09334b49d6168bfbd93682f07892a7d37871fbe6490f65ea6f5d29faf43787063b0e162a576a6cf
|
@@ -47,15 +47,25 @@ module Minitest
|
|
47
47
|
def result(test)
|
48
48
|
if test.error?
|
49
49
|
:error
|
50
|
-
elsif test.failure
|
51
|
-
:fail
|
52
50
|
elsif test.skipped?
|
53
51
|
:skip
|
52
|
+
elsif test.failure
|
53
|
+
:fail
|
54
54
|
else
|
55
55
|
:pass
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
def print_colored_status(test)
|
60
|
+
if test.passed?
|
61
|
+
print(green { pad_mark( result(test).to_s.upcase ) })
|
62
|
+
elsif test.skipped?
|
63
|
+
print(yellow { pad_mark( result(test).to_s.upcase ) })
|
64
|
+
else
|
65
|
+
print(red { pad_mark( result(test).to_s.upcase ) })
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
59
69
|
def total_time
|
60
70
|
super || Time.now - start_time
|
61
71
|
end
|
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.0.0.
|
4
|
+
version: 1.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|