gloo-test 1.1 → 1.2
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/lib/results.rb +11 -8
- data/lib/test_runner.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb2492391e5875b95e3496bcfb7974d79656eab084313a92e6c7f1f37bdbdbae
|
|
4
|
+
data.tar.gz: 34404d8e14aa32e217603b6eeacf07cd164e31e8da69a2ed6155feefc68c42a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c3c1b1f5162f8e10e595820532cf3bf01276bcadded0b247f02e335730c4574442f7e36f22257ce934d48dde1b571e6993ba72a66a38a59ad4d6e2c4ed3c1df
|
|
7
|
+
data.tar.gz: 22396f375a8d031d7fb99b44cca51ebebb42c8cd6a9a0b4300f90f7eb0d02c74b9ce9f2d9bbc3900205390d7270c35524876c6756855d569f3764ad477594927
|
data/lib/results.rb
CHANGED
|
@@ -76,10 +76,11 @@ class Results
|
|
|
76
76
|
# Show the results.
|
|
77
77
|
#
|
|
78
78
|
def show_results
|
|
79
|
+
theme = @engine.theme
|
|
79
80
|
delta = duration.round( 2 )
|
|
80
81
|
puts
|
|
81
82
|
puts get_result_summary
|
|
82
|
-
puts "Tests finished in #{delta} seconds"
|
|
83
|
+
puts theme.emphasis( "Tests finished in #{delta} seconds" )
|
|
83
84
|
puts
|
|
84
85
|
end
|
|
85
86
|
|
|
@@ -88,26 +89,28 @@ class Results
|
|
|
88
89
|
#
|
|
89
90
|
def show_failures
|
|
90
91
|
if @fail_count > 0
|
|
92
|
+
theme = @engine.theme
|
|
91
93
|
puts
|
|
92
|
-
puts "*** Failures (#{@fail_count}) ***"
|
|
94
|
+
puts theme.error( "*** Failures (#{@fail_count}) ***" )
|
|
93
95
|
puts
|
|
94
96
|
@failures.each do |failure|
|
|
95
97
|
failure.show_failure
|
|
96
98
|
end
|
|
97
99
|
end
|
|
98
100
|
end
|
|
99
|
-
|
|
100
|
-
#
|
|
101
|
+
|
|
102
|
+
#
|
|
101
103
|
# Get a textual summary of the results.
|
|
102
104
|
#
|
|
103
105
|
def get_result_summary
|
|
104
|
-
|
|
106
|
+
theme = @engine.theme
|
|
107
|
+
str = theme.emphasis( "Tests: #{@all_results.length} • Passed: #{@pass_count} • " )
|
|
105
108
|
if @fail_count > 0
|
|
106
|
-
str += " Failed: #{@fail_count} "
|
|
109
|
+
str += theme.error( " Failed: #{@fail_count} " )
|
|
107
110
|
else
|
|
108
|
-
str += " Failed: #{@fail_count} "
|
|
111
|
+
str += theme.emphasis( " Failed: #{@fail_count} " )
|
|
109
112
|
end
|
|
110
|
-
str += "\n Assertions: #{@assert_count} • Files: #{@file_count}"
|
|
113
|
+
str += theme.accent( "\n Assertions: #{@assert_count} • Files: #{@file_count}" )
|
|
111
114
|
return str
|
|
112
115
|
end
|
|
113
116
|
|
data/lib/test_runner.rb
CHANGED