fwtoolkit 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
|
|
1
|
+
Around('~@slow') do |scenario, block|
|
2
|
+
timeout_seconds = 300
|
3
|
+
begin
|
4
|
+
Timeout.timeout(timeout_seconds) do
|
5
|
+
block.call
|
6
|
+
end
|
7
|
+
rescue Timeout::Error
|
8
|
+
puts "Your test was killed after #{timeout_seconds}"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
Around('@slow') do |scenario, block|
|
13
|
+
timeout_seconds = 1200
|
14
|
+
begin
|
15
|
+
Timeout.timeout(timeout_seconds) do
|
16
|
+
block.call
|
17
|
+
end
|
18
|
+
rescue Timeout::Error
|
19
|
+
puts "Your slow test was killed after #{timeout_seconds}"
|
20
|
+
end
|
21
|
+
end
|
data/lib/fwtoolkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fwtoolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|
@@ -289,6 +289,7 @@ files:
|
|
289
289
|
- lib/fwtoolkit/test/model_helper.rb
|
290
290
|
- lib/fwtoolkit/test/network_steps.rb
|
291
291
|
- lib/fwtoolkit/test/pickle_steps.rb
|
292
|
+
- lib/fwtoolkit/test/timeout_helper.rb
|
292
293
|
- lib/fwtoolkit/test/ui_helper.rb
|
293
294
|
- lib/fwtoolkit/test/ui_steps.rb
|
294
295
|
- lib/fwtoolkit/version.rb
|
@@ -326,7 +327,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
326
327
|
version: '0'
|
327
328
|
segments:
|
328
329
|
- 0
|
329
|
-
hash:
|
330
|
+
hash: -3970918280971093081
|
330
331
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
331
332
|
none: false
|
332
333
|
requirements:
|
@@ -335,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
335
336
|
version: '0'
|
336
337
|
segments:
|
337
338
|
- 0
|
338
|
-
hash:
|
339
|
+
hash: -3970918280971093081
|
339
340
|
requirements: []
|
340
341
|
rubyforge_project:
|
341
342
|
rubygems_version: 1.8.24
|