To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorConfigure timeout for command execution
As a developer
I want to configure the timeout when executing a command
In order to support some longer running commands
- Background
-
- Given
- I use the fixture "cli-app"
- Scenarios
-
- Default value
-
- Given
-
a file named "features/support/aruba.rb" with:
Aruba.configure do |config| puts %(The default value is "#{config.exit_timeout}") end
- When
-
I successfully run
cucumber
- Then
-
the output should contain:
The default value is "15"
- Modify value
-
- Given
-
an executable named "bin/cli" with:
#!/bin/bash sleep 1
- And
-
a file named "features/support/aruba.rb" with:
Aruba.configure do |config| config.exit_timeout = 2 end
- And
- the default feature-test
- Then
-
I successfully run
cucumber
- Fails if takes longer
-
- Given
-
an executable named "bin/cli" with:
#!/bin/bash sleep 2
- And
-
a file named "features/support/aruba.rb" with:
Aruba.configure do |config| config.exit_timeout = 1 end
- And
- the default feature-test
- Then
-
I run
cucumber
- And
- the exit status should be 1
Last published over 7 years ago by Max Meyer.