Debian Codegraph @

issue.features/issue0476.feature

raw
1 @issue
2 Feature: Issue #467 -- Scenario status when scenario w/o steps is skipped
3
4 . The scenario.status should be "skipped"
5 . if you try to skip a scenario without any steps.
6
7
8 Scenario: Skip scenario without steps
9 Given a new working directory
10 And a file named "features/steps/pass_steps.py" with:
11 """
12 from behave import step
13
14 @step('{word:w} step passes')
15 def step_passes(context, word):
16 pass
17 """
18 And a file named "features/without_steps.feature" with:
19 """
20 Feature:
21 @skip_this
22 Scenario: Without steps
23 """
24 And a file named "features/environment.py" with:
25 """
26 def before_scenario(context, scenario):
27 if "skip_this" in scenario.tags:
28 scenario.skip()
29 """
30 When I run "behave -f plain features/without_steps.feature"
31 Then it should pass with:
32 """
33 Feature:
34 Scenario: Without steps
35
36 0 features passed, 0 failed, 1 skipped
37 0 scenarios passed, 0 failed, 1 skipped
38 """
39 But note that "the scenario without steps is skipped"