features/cucumber_cli.feature in cucumber-0.3.0 vs features/cucumber_cli.feature in cucumber-0.3.1
- old
+ new
@@ -189,10 +189,40 @@
Given it's 40 degrees in Norway
And it's 40 degrees in Norway
When I stop procrastinating
And there is world peace
+ Feature: multiline
+
+ Background: I'm a multiline name
+ which goes on and on and on for three lines
+ yawn
+ Given passing without a table
+
+ Scenario: I'm a multiline name
+ which goes on and on and on for three lines
+ yawn
+ Given passing without a table
+
+ Scenario Outline: I'm a multiline name
+ which goes on and on and on for three lines
+ yawn
+ Given <state> without a table
+
+ Examples:
+ | state |
+ | passing |
+
+ Scenario Outline: name
+ 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
@@ -227,10 +257,35 @@
Given failing
\"\"\"
hello
\"\"\"
+ Feature: search examples
+
+ Background: Hantu Pisang background match
+ Given passing without a table
+
+ Scenario: should match Hantu Pisang
+ Given passing without a table
+
+ Scenario: Ignore me
+ Given failing without a table
+
+ Scenario Outline: Ignore me
+ Given <state> without a table
+
+ Examples:
+ | state |
+ | failing |
+
+ Scenario Outline: Hantu Pisang match
+ Given <state> without a table
+
+ Examples:
+ | state |
+ | passing |
+
Feature: undefined multiline args
Scenario: pystring
Given a pystring
\"\"\"
@@ -240,12 +295,12 @@
Scenario: table
Given a table
| table |
| example |
- 14 scenarios
- 12 skipped steps
+ 21 scenarios
+ 26 skipped steps
9 undefined steps
"""
Scenario: Multiple formatters and outputs
@@ -272,26 +327,47 @@
1 scenario
5 undefined steps
"""
- Scenario: Run scenario specified by name using --scenario
- When I run cucumber --scenario Passing -q features
+ Scenario: Run feature elements which matches a name using --name
+ When I run cucumber --name Pisang -q features/
Then it should pass with
"""
- @one
- Feature: Sample
+ Feature: search examples
- @three
- Scenario: Passing
- Given passing
- | a | b |
- | c | d |
+ Background: Hantu Pisang background match
+ Given passing without a table
- 1 scenario
+ Scenario: should match Hantu Pisang
+ Given passing without a table
+
+ Scenario Outline: Hantu Pisang match
+ Given <state> without a table
+
+ Examples:
+ | state |
+ | passing |
+
+ 2 scenarios
+ 4 passed steps
+
+ """
+
+ Scenario: Run a single background which matches a name using --name
+ When I run cucumber --name 'Hantu Pisang background' -q features/
+ Then it should pass with
+ """
+ Feature: search examples
+
+ Background: Hantu Pisang background match
+ Given passing without a table
+
+ 0 scenarios
1 passed step
"""
+
Scenario: Run with a tag that exists on 2 scenarios
When I run cucumber -q features --tags three
Then it should pass with
"""