为cucumber/behave提供标签表达式解析和评估逻辑
项目描述
Cucumber标签表达式(Python版)。
黄瓜标签表达式提供了一种易读的布尔表达式,以方便地选择Gherkin文件中带有标签的功能和场景。
# -- SIMPLE TAG-EXPRESSION EXAMPLES: @a and @b @a or @b not @a # -- MORE TAG-EXPRESSION EXAMPLES: @a and not @b (@a or @b) and not @c
另请参阅
示例
黄瓜测试运行程序通过使用标签表达式选择一些场景,并运行它们
# -- TAG-EXPRESSION: @one and @two
# EXPECTED: Selects and runs scenario "Three".
$ my_cucumber_test_runner --tags="@one and @two" features/example.feature
...
# -- TAG-EXPRESSION: @one or @two
# EXPECTED: Selects and runs scenarios "One", "Two" and "Three".
$ my_cucumber_test_runner --tags="@one or @two" features/example.feature
...
使用以下功能文件
# -- FILE: features/example.feature
Feature: Tag-Expressions Example
@one
Scenario: One
Given a step passes
@two
Scenario: Two
Given another step passes
@one @two
Scenario: Three
Given some step passes
Scenario: Four
Given another step passes
项目详情
下载文件
下载您平台上的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分布
cucumber-tag-expressions-6.1.0.tar.gz (37.8 kB 查看哈希)
构建分布
关闭
cucumber-tag-expressions-6.1.0.tar.gz 的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 3758d312315efac8215865db1783748df5ef66324352068b32f845b7707fed5b |
|
MD5 | 2c224b10ac72a5f9d351232f1ae9a830 |
|
BLAKE2b-256 | 6f9bb90d1a022d9d81d6b4bc2d1e212cbdab1482bf58c0de319378087ae5f513 |
关闭
cucumber_tag_expressions-6.1.0-py2.py3-none-any.whl 的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 56f606fb3af85d9b7eb2f27b6bdd2850d02baa3bf92f6dc7891186e1e21a2319 |
|
MD5 | 6f435e68280da3c9a0c9017828b8f8bd |
|
BLAKE2b-256 | 8b672e31f62207c2fe24f530411cf9f07bbd8674941f5c0bfca7221d95945379 |