Cucumber Features

Expand All

Collapse All

Feature: Calling undefined step

features/call_undefined_step_from_step_def.feature:3

Scenario: Call directly

  1. Given a step definition that calls an undefined step
    features/step_definitions/sample_steps.rb:19
    Undefined step: "this does not exist"
    ./features/step_definitions/sample_steps.rb:19:in `/^a step definition that calls an undefined step$/'
    features/call_undefined_step_from_step_def.feature:4:in `Given a step definition that calls an undefined step'
    17end
    18
    19Given /^a step definition that calls an undefined step$/ do Given 'this does not exist'
    20end
    Given /^$/ do
      pending # express the regexp above with the code you wish you had
    end
Screenshot
 
features/call_undefined_step_from_step_def.feature:6

Scenario: Call via another

  1. Given call step "a step definition that calls an undefined step"
    features/step_definitions/sample_steps.rb:23
    Undefined step: "this does not exist"
    ./features/step_definitions/sample_steps.rb:19:in `/^a step definition that calls an undefined step$/'
    features/call_undefined_step_from_step_def.feature:7:in `Given call step "a step definition that calls an undefined step"'
    17end
    18
    19Given /^a step definition that calls an undefined step$/ do Given 'this does not exist'
    20end
    Given /^$/ do
      pending # express the regexp above with the code you wish you had
    end
Screenshot
 

Feature: Failing expectation

features/failing_expectation.feature:3

Scenario: Failing expectation

  1. Given failing expectation
    features/step_definitions/sample_steps.rb:62
    expected: "that"
         got: "this" (using ==)
    ./features/step_definitions/sample_steps.rb:63:in `/^failing expectation$/'
    features/failing_expectation.feature:4:in `Given failing expectation'
    61
    62Given /^failing expectation$/ do x=1
    63  'this'.should == 'that'
    64end
Screenshot
 

Feature: Lots of undefined

features/lots_of_undefined.feature:3

Scenario: Implement me

  1. Given it snows in Sahara
    features/lots_of_undefined.feature:4
    Given /^it snows in Sahara$/ do
      pending # express the regexp above with the code you wish you had
    end
  2. Given it's 40 degrees in Norway
    features/lots_of_undefined.feature:5
    Given /^it's (\d+) degrees in Norway$/ do |arg1|
      pending # express the regexp above with the code you wish you had
    end
  3. And it's 40 degrees in Norway
    features/lots_of_undefined.feature:6
    Given /^it's (\d+) degrees in Norway$/ do |arg1|
      pending # express the regexp above with the code you wish you had
    end
  4. When I stop procrastinating
    features/lots_of_undefined.feature:7
    When /^I stop procrastinating$/ do
      pending # express the regexp above with the code you wish you had
    end
  5. And there is world peace
    features/lots_of_undefined.feature:8
    When /^there is world peace$/ do
      pending # express the regexp above with the code you wish you had
    end
Screenshot
 

Feature: multiline

Background I'm a multiline name which goes on and on and on for three lines yawn

  1. Given passing without a table
    features/step_definitions/sample_steps.rb:12
features/multiline_name.feature:8

Scenario: I'm a multiline name which goes on and on and on for three lines yawn

  1. Given passing without a table
    features/step_definitions/sample_steps.rb:12
Screenshot
 
features/multiline_name.feature:13

Scenario Outline: I'm a multiline name which goes on and on and on for three lines yawn

  1. Given <state> without a table
    features/step_definitions/sample_steps.rb:12

Examples

Screenshot
 
state
passing
features/multiline_name.feature:21

Scenario Outline: name

  1. Given <state> without a table
    features/step_definitions/sample_steps.rb:12

Examples I'm a multiline name which goes on and on and on for three lines yawn

Screenshot
 
state
passing

Feature: Outline Sample

features/outline_sample.feature:3

Scenario: I have no steps

    Screenshot
     
    features/outline_sample.feature:5

    Scenario Outline: Test state

    1. Given <state> without a table
      features/step_definitions/sample_steps.rb:12
    2. Given <other_state> without a table
      features/step_definitions/sample_steps.rb:12

    Examples Rainbow colours

    Screenshot
     
    Screenshot
     
    Screenshot
     
    state
    other_state
    missing
    passing
    passing
    passing
    failing
    passing
    FAIL
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/outline_sample.feature:6:in `Given  without a table'

    Examples Only passing

    Screenshot
     
    state
    other_state
    passing
    passing
    # Feature comment
    @one

    Feature: Sample

    @two @threefeatures/sample.feature:6

    Scenario: Missing

    1. Given missing
      features/sample.feature:7
      Given /^missing$/ do
        pending # express the regexp above with the code you wish you had
      end
    Screenshot
     
    # Scenario comment
    @threefeatures/sample.feature:11

    Scenario: Passing

    1. Given passing
      features/step_definitions/sample_steps.rb:5
      a
      b
      c
      d
    Screenshot
     
    @fourfeatures/sample.feature:17

    Scenario: Failing

    1. Given failing
      features/step_definitions/sample_steps.rb:8
      hello
      FAIL
      ./features/step_definitions/sample_steps.rb:2:in `flunker'
      ./features/step_definitions/sample_steps.rb:9:in `/^failing$/'
      features/sample.feature:18:in `Given failing'
      0def flunker
      1  raise "FAIL"
      2end
    Screenshot
     

    Feature: search examples

    Background Hantu Pisang background match

    1. Given passing without a table
      features/step_definitions/sample_steps.rb:12
    features/search_sample.feature:6

    Scenario: should match Hantu Pisang

    1. Given passing without a table
      features/step_definitions/sample_steps.rb:12
    Screenshot
     
    features/search_sample.feature:9

    Scenario: Ignore me

    1. Given failing without a table
      features/step_definitions/sample_steps.rb:15
      FAIL
      ./features/step_definitions/sample_steps.rb:2:in `flunker'
      ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
      features/search_sample.feature:10:in `Given failing without a table'
      0def flunker
      1  raise "FAIL"
      2end
    Screenshot
     
    features/search_sample.feature:12

    Scenario Outline: Ignore me

    1. Given <state> without a table
      features/step_definitions/sample_steps.rb:15

    Examples

    Screenshot
     
    state
    failing
    FAIL
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/search_sample.feature:13:in `Given  without a table'
    features/search_sample.feature:18

    Scenario Outline: Hantu Pisang match

    1. Given <state> without a table
      features/step_definitions/sample_steps.rb:12

    Examples

    Screenshot
     
    state
    passing
    features/search_sample.feature:24

    Scenario Outline: no match in name but in examples

    1. Given <state> without a table
      features/step_definitions/sample_steps.rb:12

    Examples Hantu Pisang

    Screenshot
     
    state
    passing

    Examples Ignore me

    Screenshot
     
    state
    failing
    FAIL
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/search_sample.feature:25:in `Given  without a table'
    @sample_one

    Feature: Tag samples

    @sample_two @sample_fourfeatures/tags_sample.feature:5

    Scenario: Passing

    1. Given missing
      features/tags_sample.feature:6
      Given /^missing$/ do
        pending # express the regexp above with the code you wish you had
      end
    Screenshot
     
    @sample_threefeatures/tags_sample.feature:9

    Scenario Outline:

    1. Given <state>
      features/tags_sample.feature:10

    Examples

    Screenshot
     
    state
    missing
    @sample_three @sample_fourfeatures/tags_sample.feature:16

    Scenario: Skipped

    1. Given missing
      features/tags_sample.feature:17
      Given /^missing$/ do
        pending # express the regexp above with the code you wish you had
      end
    Screenshot
     
    @lots

    Feature: Tons of cukes

    features/tons_of_cukes.feature:3

    Scenario: Lots and lots

    1. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    2. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
      We already have 2 cukes!
      ./features/step_definitions/sample_steps.rb:28:in `/^'(.+)' cukes$/'
      features/tons_of_cukes.feature:5:in `Given '2' cukes'
      26
      27Given /^'(.+)' cukes$/ do |cukes| x=1
      28  raise "We already have #{@cukes} cukes!" if @cukes
      29  @cukes = cukes
      30end
    3. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    4. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    5. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    6. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    7. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    8. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    9. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    10. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    11. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    12. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    13. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    14. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    15. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    16. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    17. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    18. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    19. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    20. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    21. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    22. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    23. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    24. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    25. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    26. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    27. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    28. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    29. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    30. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    31. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    32. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    33. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    34. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    35. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    36. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    37. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    38. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    39. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    40. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    41. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    42. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    43. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    44. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    45. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    46. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    47. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    48. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    49. Given '2' cukes
      features/step_definitions/sample_steps.rb:27
    Screenshot
     

    Feature: undefined multiline args

    features/undefined_multiline_args.feature:3

    Scenario: pystring

    1. Given a pystring
      features/undefined_multiline_args.feature:4
        example with <html> entities
      Given /^a pystring$/ do |string|
        pending # express the regexp above with the code you wish you had
      end
    Screenshot
     
    features/undefined_multiline_args.feature:9

    Scenario: table

    1. Given a table
      features/undefined_multiline_args.feature:10
      table
      example
      Given /^a table$/ do |table|
        # table is a Cucumber::Ast::Table
        pending # express the regexp above with the code you wish you had
      end
    Screenshot