@@ -36,10 +36,54 @@ Feature: Test plan
3636 """
3737 When I run behave with allure formatter
3838 Then allure report has a scenario with name "Scenario with passed step"
39+ Then allure report has a scenario with name "Ignored scenario"
40+ And this scenario has "skipped" status
41+ Then allure report has a scenario with name "Another scenario with passed step"
42+ Then allure report has a scenario with name "Another ignored scenario"
43+ And this scenario has "skipped" status
44+
45+ Scenario : Drop unselected test from report
46+ Given feature definition
47+ """
48+ Feature: Test plan example
49+
50+ Scenario: Scenario with passed step
51+ Given passed step
52+
53+ Scenario: Ignored scenario
54+ Given passed step
55+ """
56+ Given feature definition
57+ """
58+ Feature: Another Test plan example
59+
60+ Scenario: Another scenario with passed step
61+ Given passed step
62+
63+ Scenario: Another ignored scenario
64+ Given passed step
65+ """
66+ Given test plan
67+ """
68+ {
69+ "version":"1.0",
70+ "tests": [
71+ {
72+ "selector": "Test plan example: Scenario with passed step"
73+ },
74+ {
75+ "selector": "Another Test plan example: Another scenario with passed step"
76+ }
77+ ]
78+ }
79+ """
80+ When I run behave with allure formatter with options "-D AllureFormatter.hide_excluded=True"
81+ Then allure report has a scenario with name "Scenario with passed step"
3982 Then allure report has not a scenario with name "Ignored scenario"
4083 Then allure report has a scenario with name "Another scenario with passed step"
4184 Then allure report has not a scenario with name "Another ignored scenario"
4285
86+
4387 Scenario : Select scenarios by allureid
4488 Given feature definition
4589 """
@@ -79,7 +123,7 @@ Feature: Test plan
79123 ]
80124 }
81125 """
82- When I run behave with allure formatter
126+ When I run behave with allure formatter with options "-D AllureFormatter.hide_excluded=True"
83127 Then allure report has a scenario with name "Scenario with passed step"
84128 Then allure report has not a scenario with name "Ignored scenario"
85129 Then allure report has a scenario with name "Another scenario with passed step"
0 commit comments