Sha256: ea38729fff2dde89b078ced4da11ac021c089377bfd3b02425c26af6bbbecb62

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

Feature: run command should not limit size of STDOUT

  In order to specify commands that produce output to STDOUT
  As a developer using Cucumber
  I want all output in STDOUT to display  

  @announce
  Scenario: Handle a large STDOUT data stream
    #When I run "ruby -e \" 500.times.each { |i| puts %Q(rword #{i+1} ) * 6 }\""
    #When I run "ruby -e \" 1000.times { puts %Q(rword ) * 12 }\""
    #Then the stdout should contain "rword"
    When I run "ruby -e 'puts :a.to_s * 65535'"
    Then the stdout should contain "aaaaa"
    When I run "ruby -e 'puts :b.to_s * 65536'"
    Then the stdout should contain "bbbbb"
    When I run "ruby -e 'puts :c.to_s * 65537'"
    Then the stdout should contain "ccccc"

  @announce
  Scenario: Check empty output
    When I run "ruby -e 'r = 1 + 3'"
    Then stdout should be empty
      And stderr should be empty

  @announce
  Scenario: Check not empty output
    When I run "ruby -e 'puts( %Q*Hello World!* )'"
    Then stdout should not be empty
      And stderr should be empty

  @announce
  Scenario: Check not empty error
    When I run "ruby -e 'fail'"
    Then stdout should be empty
      And stderr should not be empty

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aruba-jbb-0.2.7.01 features/std_out.feature
aruba-jbb-0.2.6.14 features/std_out.feature