sus 0.35.0 → 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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sus/config.rb +12 -5
- data/lib/sus/version.rb +1 -1
- data/releases.md +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 38873e75813a38f0b6a1d95006cf285ad40deabf372ea4dd6014e0ab41d994a9
|
|
4
|
+
data.tar.gz: 9d9bb3cbf3dc3eaba78d5ebe4880f3cef862cffbbb50f7760e27a994776c2ed4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
172
|
-
|
|
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
|
-
|
|
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
data/releases.md
CHANGED
|
@@ -18,7 +18,7 @@ The `receive` predicate has been enhanced to support blocks and the `and_raise`
|
|
|
18
18
|
|
|
19
19
|
``` ruby
|
|
20
20
|
# `receive` with a block:
|
|
21
|
-
expect(interface).to receive(:implementation)
|
|
21
|
+
expect(interface).to receive(:implementation){10}
|
|
22
22
|
|
|
23
23
|
# `and_return` with a block:
|
|
24
24
|
expect(interface).to receive(:implementation).and_return{FakeImplementation.new}
|
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.
|
|
4
|
+
version: 0.35.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
125
125
|
- !ruby/object:Gem::Version
|
|
126
126
|
version: '0'
|
|
127
127
|
requirements: []
|
|
128
|
-
rubygems_version:
|
|
128
|
+
rubygems_version: 4.0.3
|
|
129
129
|
specification_version: 4
|
|
130
130
|
summary: A fast and scalable test runner.
|
|
131
131
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|