rspec-retry-flaky 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -1
- data/lib/rspec/flaky/version.rb +1 -1
- data/lib/rspec/retry_flaky.rb +1 -1
- 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: 752d08bab491a9aaa4c65102dfe84f88efa0bb47
|
4
|
+
data.tar.gz: dbd5d1b12aaff3dc15093416303be9663ad55b30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c009262cf633398bed28dd994cc0f02c6aa36cca8671f30df7533acf3e48e2b890f0d7014346a963803f8de9b9ddb30201f866d38cffbd5b766afca791a86c0b
|
7
|
+
data.tar.gz: 105ee545d660e2fcffc5d028647e9d2dadd686d0d3495def7e3b8b290923132190e37bad978f41cff166e4ff8d5974d6b9c576f4ec4b1923ec26389da1a7ec38
|
data/README.md
CHANGED
@@ -18,9 +18,31 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
$ gem install retry_flaky_example
|
20
20
|
|
21
|
+
require in ```rspec_helper.rb```
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
RSpec.configure do |c|
|
25
|
+
c.verbose_retry_flack_example = true # turn on retry flack example verbose
|
26
|
+
c.flaky_retry_count = 3 # retry count when failed the example
|
27
|
+
c.flaky_sleep_interval = 10 # sleep interval between retry the example
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
21
31
|
## Usage
|
22
32
|
|
23
|
-
|
33
|
+
### progress message when the example retry
|
34
|
+
|
35
|
+
```
|
36
|
+
Retry flaky 1 times: ./spec/example.rb:10
|
37
|
+
Retry flaky 2 times: ./spec/example.rb:10
|
38
|
+
Retry flaky 3 times: ./spec/example.rb:10
|
39
|
+
```
|
40
|
+
|
41
|
+
### Configurations
|
42
|
+
|
43
|
+
- verbose_retry_flack_example(default: false)
|
44
|
+
- flaky_retry_count(default: 1)
|
45
|
+
- flaky_sleep_interval(default: 0)
|
24
46
|
|
25
47
|
## Contributing
|
26
48
|
|
data/lib/rspec/flaky/version.rb
CHANGED
data/lib/rspec/retry_flaky.rb
CHANGED
@@ -6,7 +6,7 @@ module RSpec
|
|
6
6
|
class Flaky
|
7
7
|
def self.apply
|
8
8
|
RSpec.configure do |conf|
|
9
|
-
conf.add_setting :
|
9
|
+
conf.add_setting :verbose_retry_flaky_example, :default => false
|
10
10
|
conf.add_setting :flaky_retry_count, :default => 1
|
11
11
|
conf.add_setting :flaky_sleep_interval, :default => 0
|
12
12
|
|