我正在尝试实现功能场景大纲,类似于以下内容:
Feature: Scenario outlines
Scenario Outline: Outlined given, when, then
Given there are <start> cucumbers
Given there are <start> apples
When I eat <eat> cucumbers
When I eat <eat> apples
Then I should have <left_c> cucumbers
Then I should have <left_a> apples
Examples:
| start | eat | left_c | left_a |
| 12 | 5 | 4 | 7 |
这里I should have <left_c> cucumbers
将失败,执行将停止而不考虑第二步。即使pytest bdd中的某些步骤失败,有没有办法执行剩余的步骤?