quarantine 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dce45c3ec38cb39613ea7e1e5dff68524fcbfd3a7005c879985b41ba62343688
4
- data.tar.gz: ba098ba05cc35e0aedc90db91907b1767556718520e11bd8dcb2240b52872342
3
+ metadata.gz: 16d6eb14a6e87360b3f61ea7e35ff7659ed3ac2c4593e4b63db6aef23841e592
4
+ data.tar.gz: 1acc1bd90b2d3849f3c9cbfb0210ddf5d7cafe8ce3254376c736d67268a12f55
5
5
  SHA512:
6
- metadata.gz: dda9843f287d437087882386da70ed78876b1592e9e803d6b62d33b609baf366e457b2e91a6ac817ea9617316679845e9fa793deafde01ddd4eb3f481dc5af15
7
- data.tar.gz: 6708068fbac697316d51a07a4b1fcc58e48b832aa074afb8ee7794142206eccbb556f5ca7726d0694816011883f3a321304565e1289036aec2a5ac640e1cf4f6
6
+ metadata.gz: 21256b85495c744328f43b1b2cb4094179d78689352757dcdeb067f822f402f9c28cf4fb12231e60ed1e1c6864ad2a48f8b7f7aa909e0c9d16a772dcde5e4c62
7
+ data.tar.gz: 1f50bbccf8273705894b2ebfb2ef9a6bdb5807ff4b2ea6f1e4dd5e3fc2cab3f2303b9ba8e9a5d5768a3e3ba293a074698bd28725865258dcaedfc7483cfa1c55
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 1.0.4
2
+ Enable upstream callers to mark an example as flaky through the example's metadata
3
+
1
4
  ### 1.0.3
2
5
  Only require dynamodb instead of full aws-sdk
3
6
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  class Quarantine
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
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.3
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: 2019-05-14 00:00:00.000000000 Z
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
- rubyforge_project:
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