Cucumber Features

@background_tagged_before_on_outline

Feature: Background tagged Before on Outline

Background

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

Scenario Outline passing background

  1. Then I should have '<count>' cukes
    features/step_definitions/sample_steps.rb:31

Examples

count
888

Feature: background with name

Background I'm a background and I'm ok

  1. Given '10' cukes
    features/step_definitions/sample_steps.rb:27

Scenario example

  1. Then I should have '10' cukes
    features/step_definitions/sample_steps.rb:31
@after_file

Feature: Failing background sample

Background

  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/background/failing_background.feature:5:in `Given failing without a table':in `flunker'
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/background/failing_background.feature:5:in `Given failing without a table':in `/^failing without a table$/'
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/background/failing_background.feature:5:in `Given failing without a table':in `Given failing without a table'
    0def flunker
    1  raise "FAIL"
    2end
  2. And '10' cukes
    features/step_definitions/sample_steps.rb:27

Scenario failing background

    FAIL
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/background/failing_background.feature:5:in `Given failing without a table':in `flunker'
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/background/failing_background.feature:5:in `Given failing without a table':in `/^failing without a table$/'
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/background/failing_background.feature:5:in `Given failing without a table':in `Given failing without a table'
    0def flunker
    1  raise "FAIL"
    2end
  1. Then I should have '10' cukes
    features/step_definitions/sample_steps.rb:31

Scenario another failing background

  1. Then I should have '10' cukes
    features/step_definitions/sample_steps.rb:31

Feature: Failing background after previously successful background sample

Background

  1. Given passing without a table
    features/step_definitions/sample_steps.rb:12
  2. And '10' global cukes
    features/step_definitions/sample_steps.rb:35

Scenario passing background

  1. Then I should have '10' global cukes
    features/step_definitions/sample_steps.rb:42

Scenario failing background

  1. FAIL
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:37:in `/^'(.+)' global cukes$/'
    features/background/failing_background_after_success.feature:5:in `And '10' global cukes':in `flunker'
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:37:in `/^'(.+)' global cukes$/'
    features/background/failing_background_after_success.feature:5:in `And '10' global cukes':in `/^'(.+)' global cukes$/'
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:37:in `/^'(.+)' global cukes$/'
    features/background/failing_background_after_success.feature:5:in `And '10' global cukes':in `And '10' global cukes'
    0def flunker
    1  raise "FAIL"
    2end
  2. Then I should have '10' global cukes
    features/step_definitions/sample_steps.rb:42

Feature: Passing background with multiline args

Background

  1. Given table
    features/step_definitions/sample_steps.rb:46
    a
    b
    c
    d
  2. And multiline string
    features/step_definitions/sample_steps.rb:50
      I'm a cucumber and I'm okay. 
      I sleep all night and I test all day

Scenario passing background

  1. Then the table should be
    features/step_definitions/sample_steps.rb:54
    a
    b
    c
    d
  2. Then the multiline string should be
    features/step_definitions/sample_steps.rb:58
      I'm a cucumber and I'm okay. 
      I sleep all night and I test all day

Scenario another passing background

  1. Then the table should be
    features/step_definitions/sample_steps.rb:54
    a
    b
    c
    d
  2. Then the multiline string should be
    features/step_definitions/sample_steps.rb:58
      I'm a cucumber and I'm okay. 
      I sleep all night and I test all day

Feature: Passing background sample

Background

  1. Given '10' cukes
    features/step_definitions/sample_steps.rb:27

Scenario passing background

  1. Then I should have '10' cukes
    features/step_definitions/sample_steps.rb:31

Scenario another passing background

  1. Then I should have '10' cukes
    features/step_definitions/sample_steps.rb:31

Feature: Pending background sample

Background

  1. Given pending
    features/background/pending_background.feature:4
    Given /^pending$/ do
      pending # express the regexp above with the code you wish you had
    end

Scenario pending background

  1. Then I should have '10' cukes
    features/step_definitions/sample_steps.rb:31

Scenario another pending background

  1. Then I should have '10' cukes
    features/step_definitions/sample_steps.rb:31

Feature: Failing background with scenario outlines sample

Background

  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/background/scenario_outline_failing_background.feature:4:in `Given failing without a table':in `flunker'
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/background/scenario_outline_failing_background.feature:4:in `Given failing without a table':in `/^failing without a table$/'
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
    features/background/scenario_outline_failing_background.feature:4:in `Given failing without a table':in `Given failing without a table'
    0def flunker
    1  raise "FAIL"
    2end

Scenario Outline failing background

  1. Then I should have '<count>' cukes
    features/step_definitions/sample_steps.rb:31

Examples

count
10
FAIL
./features/step_definitions/sample_steps.rb:2:in `flunker'
./features/step_definitions/sample_steps.rb:16:in `/^failing without a table$/'
features/background/scenario_outline_failing_background.feature:4:in `Given failing without a table'

Scenario Outline another failing background

  1. Then I should have '<count>' cukes
    features/step_definitions/sample_steps.rb:31

Examples

count
10

Feature: Passing background with scenario outlines sample

Background

  1. Given '10' cukes
    features/step_definitions/sample_steps.rb:27

Scenario Outline passing background

  1. Then I should have '<count>' cukes
    features/step_definitions/sample_steps.rb:31

Examples

count
10

Scenario Outline another passing background

  1. Then I should have '<count>' cukes
    features/step_definitions/sample_steps.rb:31

Examples

count
10

Feature: Calling undefined step

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':in `/^a step definition that calls an undefined step$/'
    ./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':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

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"':in `/^a step definition that calls an undefined step$/'
    ./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"':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

Feature: Failing expectation

Scenario Failing expectation

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

Feature: Lots of undefined

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 40 degrees in Norway$/ do
      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 40 degrees in Norway$/ do
      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

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

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

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

state
passing

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

state
passing

Feature: Outline Sample

Scenario I have no steps

    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

    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

    state
    other_state
    passing
    passing
    # Feature comment
    @one

    Feature: Sample

    @two @three

    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
    # Scenario comment
    @three

    Scenario Passing

    1. Given passing
      features/step_definitions/sample_steps.rb:5
      a
      b
      c
      d
    @four

    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':in `flunker'
      ./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':in `/^failing$/'
      ./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':in `Given failing'
      0def flunker
      1  raise "FAIL"
      2end

    Feature: search examples

    Background Hantu Pisang background match

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

    Scenario should match Hantu Pisang

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

    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':in `flunker'
      ./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':in `/^failing without a table$/'
      ./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':in `Given failing without a table'
      0def flunker
      1  raise "FAIL"
      2end

    Scenario Outline Ignore me

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

    Examples

    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'

    Scenario Outline Hantu Pisang match

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

    Examples

    state
    passing

    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

    state
    passing

    Examples Ignore me

    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_four

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

    Scenario Outline

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

    Examples

    state
    missing
    @sample_three @sample_four

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

    Feature: Tons of cukes

    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':in `/^'(.+)' cukes$/'
      ./features/step_definitions/sample_steps.rb:28:in `/^'(.+)' cukes$/'
      features/tons_of_cukes.feature:5:in `Given '2' cukes':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

    Feature: undefined multiline args

    Scenario pystring

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

    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