File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,30 @@ Feature: Scenario
2222 | undefined | broken |
2323
2424
25+ Scenario : Skip steps after fail step
26+ Given feature definition
27+ """
28+ Feature: Scenario
29+
30+ Scenario: Scenario with failed step in chain
31+ Given passed step
32+ Given failed step
33+ Given broken step
34+ """
35+ When I run behave with allure formatter
36+ Then allure report has a scenario with name "Scenario with failed step in chain"
37+ And this scenario has "failed" status
38+
39+ And this scenario contains step "Given passed step"
40+ And this step has "passed" status
41+
42+ And this scenario contains step "Given failed step"
43+ And this step has "failed" status
44+
45+ And this scenario contains step "Given broken step"
46+ And this step has "skipped" status
47+
48+
2549 Scenario : Scenario without name
2650 Given feature definition
2751 """
Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ def scenario_tags(scenario):
5454
5555def scenario_status (scenario ):
5656 for step in scenario .all_steps :
57- if step . status != 'passed' :
57+ if step_status ( step ) != 'passed' :
5858 return step_status (step )
5959 return Status .PASSED
6060
6161
6262def scenario_status_details (scenario ):
6363 for step in scenario .all_steps :
64- if step . status != 'passed' :
64+ if step_status ( step ) != 'passed' :
6565 return step_status_details (step )
6666
6767
You can’t perform that action at this time.
0 commit comments