Sha256: d46590d8217851c5630e5ac4d192e5b98cb833407a8dbf3764e69fd174a77b5f

Contents?: true

Size: 1.18 KB

Versions: 5

Compression:

Stored size: 1.18 KB

Contents

Feature: Configure 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"
    And the default feature-test

  Scenario: 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"
    """

  Scenario: 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
    """
    Then I successfully run `cucumber`

  Scenario: 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
    """
    Then I run `cucumber`
    And the exit status should be 1

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aruba-0.8.1 features/configuration/exit_timeout.feature
aruba-0.8.0 features/configuration/exit_timeout.feature
aruba-0.8.0.pre3 features/configuration/exit_timeout.feature
aruba-0.8.0.pre2 features/configuration/exit_timeout.feature
aruba-0.8.0.pre features/configuration/exit_timeout.feature