@background_tagged_before_on_outline

Feature: Background tagged Before on Outline

Background:

  1. Given passing without a table

Scenario Outline: passing background

  1. Then I should have '<count>' cukes

Examples:

count
888

Feature: background with name

Background: I'm a background and I'm ok

  1. Given '10' cukes

Scenario: example

  1. Then I should have '10' cukes
@after_file

Feature: Failing background sample

Background:

  1. Given failing without a table
    FAIL (RuntimeError)
    ./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'
  2. And '10' cukes

Scenario: failing background

  1. FAIL (RuntimeError)
    ./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'
  2. Then I should have '10' cukes

Scenario: another failing background

  1. Then I should have '10' cukes

Feature: Failing background after previously successful background sample

Background:

  1. Given passing without a table
  2. And '10' global cukes

Scenario: passing background

  1. Then I should have '10' global cukes

Scenario: failing background

  1. FAIL (RuntimeError)
    ./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'
  2. Then I should have '10' global cukes

Feature: Passing background with multiline args

Background:

  1. Given table
    a b
    c d
  2. And multiline string
      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
    a b
    c d
  2. Then the multiline string should be
      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
    a b
    c d
  2. Then the multiline string should be
      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

Scenario: passing background

  1. Then I should have '10' cukes

Scenario: another passing background

  1. Then I should have '10' cukes

Feature: Pending background sample

Background:

  1. Given pending
    Undefined step: "pending" (Cucumber::Undefined)
    features/background/pending_background.feature:4:in `Given pending'

Scenario: pending background

  1. Undefined step: "pending" (Cucumber::Undefined)
    features/background/pending_background.feature:4:in `Given pending'
  2. Then I should have '10' cukes

Scenario: another pending background

  1. Undefined step: "pending" (Cucumber::Undefined)
    features/background/pending_background.feature:4:in `Given pending'
  2. Then I should have '10' cukes

Feature: Failing background with scenario outlines sample

Background:

  1. Given failing without a table
    FAIL (RuntimeError)
    ./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: failing background

  1. Then I should have '<count>' cukes

Examples:

count
10
FAIL (RuntimeError)
./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

Examples:

count
10

Feature: Passing background with scenario outlines sample

Background:

  1. Given '10' cukes

Scenario Outline: passing background

  1. Then I should have '<count>' cukes

Examples:

count
10

Scenario Outline: another passing background

  1. Then I should have '<count>' cukes

Examples:

count
10

Feature: Calling undefined step

Scenario: Call directly

  1. Given a step definition that calls an undefined step
    Undefined step: "this does not exist" (Cucumber::Undefined)
    ./features/step_definitions/sample_steps.rb:20: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'

Scenario: Call via another

  1. Given call step "a step definition that calls an undefined step"
    Undefined step: "this does not exist" (Cucumber::Undefined)
    ./features/step_definitions/sample_steps.rb:20: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"'

Feature: Failing expectation

Scenario: Failing expectation

  1. Given failing expectation
    expected: "that",
         got: "this" (using ==)
    Diff:
    @@ -1,2 +1,2 @@
    -that
    +this
     (Spec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/sample_steps.rb:63:in `/^failing expectation$/'
    features/failing_expectation.feature:4:in `Given failing expectation'

Feature: Lots of undefined

Scenario: Implement me

  1. Given it snows in Sahara
    Undefined step: "it snows in Sahara" (Cucumber::Undefined)
    features/lots_of_undefined.feature:4:in `Given it snows in Sahara'
  2. Given it's 40 degrees in Norway
    Undefined step: "it's 40 degrees in Norway" (Cucumber::Undefined)
    features/lots_of_undefined.feature:5:in `Given it's 40 degrees in Norway'
  3. And it's 40 degrees in Norway
    Undefined step: "it's 40 degrees in Norway" (Cucumber::Undefined)
    features/lots_of_undefined.feature:6:in `And it's 40 degrees in Norway'
  4. When I stop procrastinating
    Undefined step: "I stop procrastinating" (Cucumber::Undefined)
    features/lots_of_undefined.feature:7:in `When I stop procrastinating'
  5. And there is world peace
    Undefined step: "there is world peace" (Cucumber::Undefined)
    features/lots_of_undefined.feature:8:in `And there is world peace'

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

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

  1. Given passing without a table

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

  1. Given <state> without a table

Examples:

state
passing

Scenario Outline: name

  1. Given <state> without a table

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
  2. Given <other_state> without a table

Examples: Rainbow colours

state other_state
missing passing
Undefined step: "missing without a table" (Cucumber::Undefined)
features/outline_sample.feature:6:in `Given  without a table'                
passing passing
failing passing
FAIL (RuntimeError)
./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
@one

Feature: Sample

@two @three

Scenario: Missing

  1. Given missing
    Undefined step: "missing" (Cucumber::Undefined)
    features/sample.feature:6:in `Given missing'
@three

Scenario: Passing

  1. Given passing
    a b
    c d
@four

Scenario: Failing

  1. Given failing
    hello              
    FAIL (RuntimeError)
    ./features/step_definitions/sample_steps.rb:2:in `flunker'
    ./features/step_definitions/sample_steps.rb:9:in `/^failing$/'
    features/sample.feature:16:in `Given failing'

Feature: search examples

Background: Hantu Pisang background match

  1. Given passing without a table

Scenario: should match Hantu Pisang

  1. Given passing without a table

Scenario: Ignore me

  1. Given failing without a table
    FAIL (RuntimeError)
    ./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'

Scenario Outline: Ignore me

  1. Given <state> without a table

Examples:

state
failing
FAIL (RuntimeError)
./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

Examples:

state
passing

Scenario Outline: no match in name but in examples

  1. Given <state> without a table

Examples: Hantu Pisang

state
passing

Examples: Ignore me

state
failing
FAIL (RuntimeError)
./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'                
@lots

Feature: Tons of cukes

Scenario: Lots and lots

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

Feature: undefined multiline args

Scenario: pystring

  1. Given a pystring
      example              
    Undefined step: "a pystring" (Cucumber::Undefined)
    features/undefined_multiline_args.feature:4:in `Given a pystring'

Scenario: table

  1. Given a table
    table
    example
    Undefined step: "a table" (Cucumber::Undefined)
    features/undefined_multiline_args.feature:10:in `Given a table'
0m30.005s