1
Feature: HTML output formatter
4
Given a file named "features/scenario_outline_with_undefined_steps.feature" with:
9
Given an undefined step
15
And a file named "features/scenario_outline_with_pending_step.feature" with:
19
Scenario Outline: Will it blend?
20
Given this hasn't been implemented yet
22
When I do something with <example>
23
Then I should see something
30
And a file named "features/failing_background_step.feature" with:
32
Feature: Feature with failing background step
39
Then I should see something
41
And a file named "features/step_definitions/steps.rb" with:
43
Given /^this fails$/ do
44
fail 'This step should fail'
46
Given /^this hasn't been implemented yet$/ do
51
Scenario: an scenario outline, one undefined step, one random example, expand flag on
52
When I run `cucumber features/scenario_outline_with_undefined_steps.feature --format html --expand `
55
Scenario Outline: an scenario outline, one pending step
56
When I run `cucumber <file> --format html <flag>`
58
And the output should contain:
60
makeYellow('scenario_1')
62
And the output should not contain:
68
| features/scenario_outline_with_pending_step.feature | --expand |
69
| features/scenario_outline_with_pending_step.feature | |
70
| features/scenario_outline_with_undefined_steps.feature | --expand |
71
| features/scenario_outline_with_undefined_steps.feature | |
73
Scenario: when using a profile the html shouldn't include 'Using the default profile...'
74
And a file named "cucumber.yml" with:
78
When I run `cucumber features/scenario_outline_with_undefined_steps.feature --profile default --format html`
80
And the output should not contain:
82
Using the default profile...
85
Scenario: a feature with a failing background step
86
When I run `cucumber features/failing_background_step.feature --format html`
87
Then the output should not contain:
91
And the output should contain:
93
makeRed('background_0')