forked from cucumber/aruba
-
Notifications
You must be signed in to change notification settings - Fork 2
/
startup_wait_time.feature
48 lines (40 loc) · 1.33 KB
/
startup_wait_time.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Feature: Set time to wait after spawning command
As a developer
I want to configure a time span to wait after the command was spawned
In order to prevent failure of some commands which take a little bit longer
to load.
If you setup a ruby script, this may load bundler. This makes the script to
start up a little bit longer. If you want to run a command in background,
starting the command in a background process may take longer then sending it
a signal.
If you experience some brittle tests with background commands, try to set the
`#startup_wait_time`.
Background:
Given I use the fixture "cli-app"
Scenario: Default value
Given a file named "features/support/aruba.rb" with:
"""ruby
Aruba.configure do |config|
puts %(The default value is "#{config.startup_wait_time}")
end
"""
When I successfully run `cucumber`
Then the output should contain:
"""
The default value is "0"
"""
Scenario: Modify value
Given a file named "features/support/aruba.rb" with:
"""ruby
Aruba.configure do |config|
config.startup_wait_time = 2
end
Aruba.configure do |config|
puts %(The new value is "#{config.startup_wait_time}")
end
"""
Then I successfully run `cucumber`
Then the output should contain:
"""
The new value is "2"
"""