Cucumber Features

Expand All

Collapse All

# Example feature

Feature: To show how to run cucumber features

Scenario: Simplest scenario

  1. Given I am on the homepage
    features/step_definitions/web_steps.rb:19
  2. Then I should see "Rubbish"
    features/step_definitions/web_steps.rb:107
    <false> is not true.
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"':in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"':in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"':in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"':in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"':in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"':in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"':in `with_scope'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"':in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion'
    /Users/alkesh/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
    ./features/step_definitions/web_steps.rb:112
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
    features/example.feature:5:in `Then I should see "Rubbish"':in `Then I should see "Rubbish"'
    46        _wrap_assertion do
    47          if (! yield)
    48            raise AssertionFailedError.new(message.to_s)
    49          end
    50        end