Sha256: 6b9043b13f636fcb06b46b9001058c6ba4a0422a8045618926986893f8522a07

Contents?: true

Size: 686 Bytes

Versions: 4

Compression:

Stored size: 686 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

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

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

  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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cucumber-nagios-0.8.5 features/commands.feature
cucumber-nagios-0.8.4 features/commands.feature
cucumber-nagios-0.8.3 features/commands.feature
cucumber-nagios-0.8.2 features/commands.feature