Skip to main content

Provides a tag-expression parser and evaluation logic for cucumber/behave

Project description

CI Build Status Latest Version License

Cucumber tag-expressions for Python.

logo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cucumber-tag-expressions-5.0.1.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cucumber_tag_expressions-5.0.1-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cucumber-tag-expressions-5.0.1.tar.gz.

File metadata

  • Download URL: cucumber-tag-expressions-5.0.1.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cucumber-tag-expressions-5.0.1.tar.gz
Algorithm Hash digest
SHA256 b235ee05edcc1d678c2aca8b5cbd1e5a672a66a03c953a7776aca4c8678c2bce
MD5 9bf1ae4ef0b7e337e882b17df681946a
BLAKE2b-256 1c19ae4a8023d2609be797665688ade13d9408294c24b4634559a18b4615485d

See more details on using hashes here.

File details

Details for the file cucumber_tag_expressions-5.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cucumber_tag_expressions-5.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c13ba4d139cbf313539e8349ba87d8d9ad9fb199959aa2fbadf9b616d2d2e9ee
MD5 18e4c7e291d90d2882c50a08bf753ff1
BLAKE2b-256 6ffa0ded47fabfa102e65faa46bb1459e95deae50ffb0cd0f816206fe0c5d6c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page