cucumber-repeat 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cucumber-repeat.rb +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97e789857e4fa7955c46fe851a41947f76876e0c
|
4
|
+
data.tar.gz: 1bea117bde3c2a28ce5be148893bd39d5e84cd90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cd643c182bcadf82965699be6774357d58b11909b5a4aba8ba7962302f213c10e3450f285edf13b7a1ecfbd05e72d6014c72a70f21b9da78f915dd387e64dc6
|
7
|
+
data.tar.gz: 673a2600533d3e55d262bef0360db7fb6e89a41317e72e44e8c015912e830b872ff9bfea82db964418b6cc77ac186f050be96b53ca198bd7ee2bb3ad08c65dd6
|
data/lib/cucumber-repeat.rb
CHANGED
@@ -4,6 +4,13 @@ require_relative('formatter.rb')
|
|
4
4
|
|
5
5
|
$coloured_output = true
|
6
6
|
|
7
|
+
|
8
|
+
$repeat_tries = (ENV['REPEATER'].to_i || 2)
|
9
|
+
|
10
|
+
if ($repeat_tries == 0) then
|
11
|
+
$repeat_tries = 2
|
12
|
+
end
|
13
|
+
|
7
14
|
WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
|
8
15
|
|
9
16
|
if (WINDOWS.nil?) then
|
@@ -14,7 +21,7 @@ end
|
|
14
21
|
|
15
22
|
After('@repeat') do | scenario |
|
16
23
|
if (scenario.failed?) then
|
17
|
-
for i in 1
|
24
|
+
for i in 1..$repeat_tries
|
18
25
|
if (scenario.failed?)
|
19
26
|
$stdout.puts blue_text(" Test Failed, Retrying test")
|
20
27
|
run_scenario(scenario)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-repeat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|