Sha256: 73a29da38126c0e95b57dc8f3e0bcf2edb0dbc61addf60263ea8034627a62f5b

Contents?: true

Size: 728 Bytes

Versions: 8

Compression:

Stored size: 728 Bytes

Contents

Feature: Executing commands
  In order to test a running system
  As an administrator
  I want to run arbitrary commands and test the output

  @steps
  Scenario: Check Stdout
    When I run 'echo "i like cheese"'
    Then 'stdout' should have 'i like cheese'

  @steps
  Scenario: Check Stderr
    When I run 'echo "i like cheese" 1>&2'
    Then 'stderr' should have 'i like cheese'

  @steps
  Scenario: Check Stdout for multiple lines
    When I run 'shopt -s xpg_echo ; echo "one\n\one\none\n"'
    Then 'one' should appear on 'stdout' '3' times

  @steps
  Scenario: Check exit code
    When I run 'true'
    Then it should exit '0'

  @steps
  Scenario: Check exit code
    When I run 'false'
    Then it should exit '1'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cucumber-nagios-0.9.2 features/commands.feature
cucumber-nagios-0.9.0 features/commands.feature
cucumber-nagios-0.8.11 features/commands.feature
cucumber-nagios-0.8.10 features/commands.feature
cucumber-nagios-0.8.9 features/commands.feature
cucumber-nagios-0.8.8 features/commands.feature
cucumber-nagios-0.8.7 features/commands.feature
cucumber-nagios-0.8.6 features/commands.feature