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.3.tar.gz (38.7 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.3-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: cucumber-tag-expressions-5.0.3.tar.gz
  • Upload date:
  • Size: 38.7 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.3.tar.gz
Algorithm Hash digest
SHA256 ec127954787f7594984b3c8b19520cc17f9d539f5c040fce2915b630bef04818
MD5 5ae40ebb670e544c6183ddc4a66f73ad
BLAKE2b-256 c2957960a3d6feeeb1348f0d0daf2ebab0bc0919e1144bf8fe93b04510a326bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cucumber_tag_expressions-5.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 04e297da777a59d5ffe9b869f3bc6e711fd3c2d49c2560c1c90a00f01e00bc98
MD5 0afb57134637273a7573ad3b7fc5410f
BLAKE2b-256 59af3627b4a0b338dd2dfb9ce69bf85d59b494a9620406e6920b1acf9e5e6cf8

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