@@ -36,10 +36,54 @@ Feature: Test plan
36
36
"""
37
37
When I run behave with allure formatter
38
38
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"
39
82
Then allure report has not a scenario with name "Ignored scenario"
40
83
Then allure report has a scenario with name "Another scenario with passed step"
41
84
Then allure report has not a scenario with name "Another ignored scenario"
42
85
86
+
43
87
Scenario : Select scenarios by allureid
44
88
Given feature definition
45
89
"""
@@ -79,7 +123,7 @@ Feature: Test plan
79
123
]
80
124
}
81
125
"""
82
- When I run behave with allure formatter
126
+ When I run behave with allure formatter with options "-D AllureFormatter.hide_excluded=True"
83
127
Then allure report has a scenario with name "Scenario with passed step"
84
128
Then allure report has not a scenario with name "Ignored scenario"
85
129
Then allure report has a scenario with name "Another scenario with passed step"
0 commit comments