Sha256: 7611c819cbb64c1e4d2066c63b60e22b60d58d51abb99c9351a0ffe9cad07a98

Contents?: true

Size: 1.15 KB

Versions: 1

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  

  @wip @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

1 entries across 1 versions & 1 rubygems

Version Path
aruba-jbb-0.2.6.13 features/std_out.feature