[英]Behave (BDD for Python) supports Examples tagging
我希望通過以下方式將適用於場景和功能的標簽應用於示例。 它似乎適用於黃瓜,但不適用於Behave-適用於Python的BDD框架:
Scenario Outline: Something useful
Given I have <a>
When I add <b>
Then I should have <c>
Examples: Implemented things
| a | b | c |
| 0 | 0 | 0 |
@pending
Examples: Not yet implemented things
| a | b | c |
| 1 | 2 | 3 |
首先,請確保您具有1.2.5的行為
pip show behave
如果不是行為1.2.5,則安裝最新版本。
pip install git+https://github.com/behave/behave
其次,您可能需要在占位符周圍加上引號。 例如。
Given I have "<a>"
When I add "<b>"
Then I should have "<c>"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.