quarantine 1.0.3 → 1.0.4
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/CHANGELOG.md +3 -0
- data/lib/quarantine/rspec_adapter.rb +4 -2
- data/lib/quarantine/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16d6eb14a6e87360b3f61ea7e35ff7659ed3ac2c4593e4b63db6aef23841e592
|
|
4
|
+
data.tar.gz: 1acc1bd90b2d3849f3c9cbfb0210ddf5d7cafe8ce3254376c736d67268a12f55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21256b85495c744328f43b1b2cb4094179d78689352757dcdeb067f822f402f9c28cf4fb12231e60ed1e1c6864ad2a48f8b7f7aa909e0c9d16a772dcde5e4c62
|
|
7
|
+
data.tar.gz: 1f50bbccf8273705894b2ebfb2ef9a6bdb5807ff4b2ea6f1e4dd5e3fc2cab3f2303b9ba8e9a5d5768a3e3ba293a074698bd28725865258dcaedfc7483cfa1c55
|
data/CHANGELOG.md
CHANGED
|
@@ -57,11 +57,13 @@ module RSpecAdapter
|
|
|
57
57
|
!quarantine.test_quarantined?(example) &&
|
|
58
58
|
metadata[:retry_attempts] + 1 == metadata[:retry] && example.exception
|
|
59
59
|
|
|
60
|
-
# will record the flaky test if is not quarantined and it failed the first run but passed a subsequent run
|
|
60
|
+
# will record the flaky test if is not quarantined and it failed the first run but passed a subsequent run;
|
|
61
|
+
# optionally, the upstream RSpec configuration could define an after hook that marks an example as flaky in
|
|
62
|
+
# the example's metadata
|
|
61
63
|
quarantine.record_flaky_test(example) if
|
|
62
64
|
RSpec.configuration.quarantine_record_flaky_tests &&
|
|
63
65
|
!quarantine.test_quarantined?(example) &&
|
|
64
|
-
metadata[:retry_attempts] > 0 && example.exception.nil?
|
|
66
|
+
(metadata[:retry_attempts] > 0 && example.exception.nil?) || metadata[:flaky]
|
|
65
67
|
end
|
|
66
68
|
end
|
|
67
69
|
|
data/lib/quarantine/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quarantine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Flexport Engineering, Eric Zhu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-dynamodb
|
|
@@ -91,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
91
91
|
- !ruby/object:Gem::Version
|
|
92
92
|
version: '0'
|
|
93
93
|
requirements: []
|
|
94
|
-
|
|
95
|
-
rubygems_version: 2.7.8
|
|
94
|
+
rubygems_version: 3.0.2
|
|
96
95
|
signing_key:
|
|
97
96
|
specification_version: 4
|
|
98
97
|
summary: Quarantine flaky Ruby Rspec tests
|