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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/results.rb +11 -8
  3. data/lib/test_runner.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a73cec30908a847f9a57eff2a51260510ce2c6dae9c7ce3a5c899cb2b687385
4
- data.tar.gz: 3e39c1eeac6b251ed68f81047759a7a505d5eccff6c62b3c156994a8c42b5a8c
3
+ metadata.gz: bb2492391e5875b95e3496bcfb7974d79656eab084313a92e6c7f1f37bdbdbae
4
+ data.tar.gz: 34404d8e14aa32e217603b6eeacf07cd164e31e8da69a2ed6155feefc68c42a6
5
5
  SHA512:
6
- metadata.gz: a78397cbeb4554166ec1d210149969121f1ebe133f3d6b7c45811fba1da0c1f3f2c2627a0a12dfa2257b3a6e9b4a85294fd61f42c53b8731cf201e33a29b6e5a
7
- data.tar.gz: b11b5be346c5de429676e3095c675b4ef651fc4ea4688890473fba113bcd1345777175ee95011ef4f930fe5d6054bbe8c751f3987df1e3ce5d347f28d9a83c29
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".white
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}) ***".red
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
- str = "Tests: #{@all_results.length} • Passed: #{@pass_count} • ".white
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} ".red
109
+ str += theme.error( " Failed: #{@fail_count} " )
107
110
  else
108
- str += " Failed: #{@fail_count} ".white
111
+ str += theme.emphasis( " Failed: #{@fail_count} " )
109
112
  end
110
- str += "\n Assertions: #{@assert_count} • Files: #{@file_count}".yellow
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
@@ -37,7 +37,7 @@ class TestRunner
37
37
  def setup
38
38
  @engine.log.debug "TestRunner is running…"
39
39
  puts
40
- puts "Gloo Test Runner".white
40
+ puts @engine.theme.emphasis( "Gloo Test Runner" )
41
41
  puts
42
42
 
43
43
  # Get a list of test files and randomize
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloo-test
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane