Debian Codegraph @

issue.features/issue0052.feature

raw
1 @issue
2 Feature: Issue #52 Summary counts are wrong with option --tags
3
4 Wrong summary counts are shown for skipped and failed scenarios
5 when option --tags=done is used (and some scenarios are skipped).
6
7
8 Background: Test Setup
9 Given a new working directory
10 Given a file named "features/steps/steps.py" with:
11 """
12 from behave import given
13
14 @given(u'passing')
15 def step(context):
16 pass
17
18 @given(u'failing')
19 def step(context):
20 assert False, "failing"
21 """
22
23 Scenario: Successful Execution of Tagged Scenario
24 Given a file named "features/tagged_scenario1.feature" with:
25 """
26 Feature: Passing tagged Scenario
27 @done
28 Scenario: P1
29 Given passing
30
31 @unimplemented
32 Scenario: N1
33 Given passing
34 @unimplemented
35 Scenario: N2
36 Given passing
37 """
38 When I run "behave --junit -c --tags @done features/tagged_scenario1.feature"
39 Then it should pass with:
40 """
41 1 feature passed, 0 failed, 0 skipped
42 1 scenario passed, 0 failed, 2 skipped
43 """
44
45 Scenario: Failing Execution of Tagged Scenario
46 Given a file named "features/tagged_scenario2.feature" with:
47 """
48 Feature: Failing tagged Scenario
49 @done
50 Scenario: F1
51 Given failing
52
53 @unimplemented
54 Scenario: N1
55 Given passing
56 @unimplemented
57 Scenario: N2
58 Given passing
59 """
60 When I run "behave --junit -c --tags @done features/tagged_scenario2.feature"
61 Then it should fail
62 And the command output should contain:
63 """
64 0 features passed, 1 failed, 0 skipped
65 0 scenarios passed, 1 failed, 2 skipped
66 """