sus 0.35.1 → 0.35.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2dfb3db86a0d26179bbbd4bdbcde4b077039477ae29c1921da57f2eb4e564317
4
- data.tar.gz: 314658db926fb955a6a56c6d22d55d2e17050dfb3547956184fdff26097c20b9
3
+ metadata.gz: 38873e75813a38f0b6a1d95006cf285ad40deabf372ea4dd6014e0ab41d994a9
4
+ data.tar.gz: 9d9bb3cbf3dc3eaba78d5ebe4880f3cef862cffbbb50f7760e27a994776c2ed4
5
5
  SHA512:
6
- metadata.gz: b78f9e0f4eb9ffda5d9469822ea37f9dc57eb58cba72cca94f974ecfc5ad86e1a5957f7584fe110e114d3cd4803c0545a787a6fab6f4edd963e5edf9e013029e
7
- data.tar.gz: 6e9bf25de82c3c4518ad64160ebf7e4a20988f302066f534bb166da632d97238e09888592c556aa750be6638b397c102acfd643996fc40679e3e81ef0192115c
6
+ metadata.gz: 3e6bc26c14aaf3be9b3232eda519a47fa05b659ff4baf501da3c830548ead2e4125ab0e37c7a28693fd5fce93fd0aa122ea09ce3843a939170de4f1726f6decd
7
+ data.tar.gz: 100146d5119b3bdff4cfb924173385338dfba86ea1d65f11bd5270422d872185532c59857971e14afeeea2d0212e02d44b7449b1dedd1318030d1e5e41524a04
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/sus/config.rb CHANGED
@@ -168,11 +168,14 @@ module Sus
168
168
 
169
169
  print_finished_statistics(output, assertions)
170
170
 
171
- if !partial? and assertions.passed?
172
- print_test_feedback(output, assertions)
171
+ unless assertions.count.zero?
172
+ if !partial? and assertions.passed?
173
+ print_test_feedback(output, assertions)
174
+ end
175
+
176
+ print_slow_tests(output, assertions)
173
177
  end
174
178
 
175
- print_slow_tests(output, assertions)
176
179
  print_failed_assertions(output, assertions)
177
180
  end
178
181
 
@@ -181,9 +184,13 @@ module Sus
181
184
  # @parameter assertions [Assertions] The assertions instance.
182
185
  def print_finished_statistics(output, assertions)
183
186
  duration = @clock.duration
184
- rate = assertions.count / duration
185
187
 
186
- output.puts "🏁 Finished in ", @clock, "; #{rate.round(3)} assertions per second."
188
+ if assertions.count.zero?
189
+ output.puts "🏴 Finished in ", @clock, "."
190
+ else
191
+ rate = assertions.count / duration
192
+ output.puts "🏁 Finished in ", @clock, "; #{rate.round(3)} assertions per second."
193
+ end
187
194
  end
188
195
 
189
196
  # Print feedback about the test suite.
data/lib/sus/version.rb CHANGED
@@ -5,5 +5,5 @@
5
5
 
6
6
  # @namespace
7
7
  module Sus
8
- VERSION = "0.35.1"
8
+ VERSION = "0.35.2"
9
9
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.1
4
+ version: 0.35.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file