| 1 |
@issue |
| 2 |
Feature: Issue #111: Comment following @wip tag results in scenario being ignored |
| 3 |
|
| 4 |
. If a comment is placed after the @wip tag, the following scenario |
| 5 |
. is ignored by behave: |
| 6 |
. |
| 7 |
. @wip # comment: this is work in progress |
| 8 |
. Scenario: test scenario |
| 9 |
. |
| 10 |
. results in behave -w not running the "test scenario". |
| 11 |
. After removing the comment, it runs as expected. |
| 12 |
|
| 13 |
|
| 14 |
Scenario: Test Setup |
| 15 |
Given a new working directory |
| 16 |
And a file named "features/steps/passing_steps.py" with: |
| 17 |
""" |
| 18 |
from behave import step |
| 19 |
|
| 20 |
@step(u'a step passes') |
| 21 |
def step_passes(context): |
| 22 |
pass |
| 23 |
""" |
| 24 |
And a file named "features/syndrome111.feature" with: |
| 25 |
""" |
| 26 |
Feature: |
| 27 |
|
| 28 |
@wip # Comment: blabla |
| 29 |
Scenario: S1 |
| 30 |
Given a step passes |
| 31 |
|
| 32 |
@wip @one # Comment: foobar |
| 33 |
Scenario: S2 |
| 34 |
Given a step passes |
| 35 |
""" |
| 36 |
|
| 37 |
Scenario: Scenario w/ comment on tag-line should run as normal |
| 38 |
When I run "behave --wip features/syndrome111.feature" |
| 39 |
Then it should pass with: |
| 40 |
""" |
| 41 |
1 feature passed, 0 failed, 0 skipped |
| 42 |
2 scenarios passed, 0 failed, 0 skipped |
| 43 |
2 steps passed, 0 failed, 0 skipped, 0 undefined |
| 44 |
""" |
| 45 |
|
| 46 |
Scenario: Ensure 2nd scenario can be selected with other tag |
| 47 |
When I run "behave -f plain --tags=one features/syndrome111.feature" |
| 48 |
Then it should pass with: |
| 49 |
""" |
| 50 |
1 feature passed, 0 failed, 0 skipped |
| 51 |
1 scenario passed, 0 failed, 1 skipped |
| 52 |
1 step passed, 0 failed, 1 skipped, 0 undefined |
| 53 |
""" |