Provides a tag-expression parser and evaluation logic for cucumber/behave
Project description
Cucumber tag-expressions for Python.
Cucumber tag-expressions provide readable boolean expressions to select features and scenarios marked with tags in Gherkin files in an easy way:
# -- 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
SEE ALSO:
EXAMPLE:
A cucumber test runner selects some scenarios by using tag-expressions and runs them:
# -- 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
...
by using the following feature file:
# -- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cucumber-tag-expressions-5.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3eebacdb4d47890418d44f2b152ef33863132ae59e23c608d618beae2bd9169 |
|
MD5 | 341b9304967288bb31d421c1bcc3737c |
|
BLAKE2b-256 | f38afa07e423ed6d315237e60c07925324bd4b17c7df94d8c3ddbc70b2c82999 |
Close
Hashes for cucumber_tag_expressions-5.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cd8125b6dd0b931765b77621cab03a4385f6f2ffbf9e7266bbf6decc908faaf |
|
MD5 | cc44b96f0f591f22291779d16e2c2a65 |
|
BLAKE2b-256 | 0bfd267039834979fb540336feb347d812219fc3c47f23217fe4a558184aafad |