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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b487913ff695155e18004152edd6aa4775b689edd565d0fb83b8ad17a45860b3 |
|
MD5 | 4c16fa360cae922330e23e34c77ca3dd |
|
BLAKE2b-256 | 756b9ed774a70b4a05a6a7274e48be28f7b89ec9d0bde037c73cb379319267c4 |
Close
Hashes for cucumber_tag_expressions-5.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 196983935c595b733d6d21e41f19b62b2f2826be7c291fc65a1c9d5967ef41ca |
|
MD5 | da7fa53649e5b03266f8e493055b922d |
|
BLAKE2b-256 | d9ed16a5e4f48e63aae362135100ac571b31ea78e15dc36300147ca317a47fbf |