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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22bc5841d5078ae2aee414cd36eb0ece60ce75bd
4
- data.tar.gz: c5ba3742d027deefabb769882942388b02977a74
3
+ metadata.gz: 752d08bab491a9aaa4c65102dfe84f88efa0bb47
4
+ data.tar.gz: dbd5d1b12aaff3dc15093416303be9663ad55b30
5
5
  SHA512:
6
- metadata.gz: 03194c57114a0e7dbee0a893978b6dada9019de0c8d688e77891e3338ebe9a47ef4d9542fbf9ea34af7d88e092c62b1ed01f82eb10783a44af9373d3c28779e7
7
- data.tar.gz: d2ead44e699aec826616ba4e2d20ea58974e151b7ef56ef511c8f68d5c669301ee29fa7526097a5a9e49f6b961a490214fb2e018fab28c09f450bb95837cc02d
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
- TODO: Write usage instructions here
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
 
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  class Flaky
3
- VERSION = '0.0.3'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
@@ -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 :verbose_retry_flack_example, :default => false
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-retry-flaky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO