schmurfy-bacon 1.5.0 → 1.5.1
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/bacon.rb +5 -2
- data/lib/bacon/version.rb +1 -1
- data/lib/output/better_output.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e24a98a372a6db0f28f2dc5bca324fcdd54cecd
|
4
|
+
data.tar.gz: 8ecb518435a581fc5d79c382bb05ce57d43713a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f17963d3cdfbc56c603817b1aa790b261c50d7e6ce8d5bc517ddeff296af098dc18c0dce91743594872abef6ee1f6b2490222b9587bf2d552f34817cf27e3373
|
7
|
+
data.tar.gz: 7e2d57130e114cb4435f9e59b0e1b45e32cf6f35533f90be180a2fd4534485154a98cc0007bf8813b3bf9d6188aff44938b87b8207c422fa360d5563b2053ea4
|
data/lib/bacon.rb
CHANGED
@@ -118,9 +118,12 @@ module Bacon
|
|
118
118
|
begin
|
119
119
|
prev_req = nil
|
120
120
|
|
121
|
-
|
122
|
-
|
121
|
+
execute_spec do
|
122
|
+
timing << Hitimes::Interval.measure do
|
123
123
|
@before.each { |block| instance_eval(&block) }
|
124
|
+
end
|
125
|
+
|
126
|
+
timing << Hitimes::Interval.measure do
|
124
127
|
prev_req = Counter[:requirements]
|
125
128
|
instance_eval(&spec)
|
126
129
|
end
|
data/lib/bacon/version.rb
CHANGED
data/lib/output/better_output.rb
CHANGED
@@ -21,8 +21,11 @@ module BetterOutput
|
|
21
21
|
|
22
22
|
case error_type
|
23
23
|
when ""
|
24
|
-
|
25
|
-
|
24
|
+
before_duration = (timing[0] * 1000).to_i
|
25
|
+
test_duration = (timing[1] * 1000).to_i
|
26
|
+
total = (timing.inject(:+) * 1000 ).to_i
|
27
|
+
|
28
|
+
puts "#{spaces} #{Color.green}✔#{Color.reset} #{description} [#{total} ms (#{before_duration} + #{test_duration})]"
|
26
29
|
|
27
30
|
when :failed
|
28
31
|
puts "#{spaces} #{Color.red}✘#{Color.reset} #{description}"
|