cucumber-tag-expressions


Namecucumber-tag-expressions JSON
Version 6.1.0 PyPI version JSON
download
home_pagehttps://github.com/cucumber/tag-expressions
SummaryProvides a tag-expression parser and evaluation logic for cucumber/behave
upload_time2024-01-10 11:35:56
maintainer
docs_urlNone
authorJens Engel
requires_python>=2.7
licenseMIT
keywords bdd testing cucumber tag-expressions behave
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://github.com/cucumber/tag-expressions/actions/workflows/test-python.yml/badge.svg
    :target: https://github.com/cucumber/tag-expressions/actions/workflows/test-python.yml
    :alt: CI Build Status

.. image:: https://img.shields.io/pypi/v/cucumber-tag-expressions.svg
    :target: https://pypi.python.org/pypi/cucumber-tag-expressions
    :alt: Latest Version

.. image:: https://img.shields.io/pypi/l/cucumber-tag-expressions.svg
    :target: https://pypi.python.org/pypi/cucumber-tag-expressions/
    :alt: License

.. |logo| image:: https://github.com/cucumber-ltd/brand/raw/master/images/png/notm/cucumber-black/cucumber-black-128.png

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:

* https://cucumber.io/docs/cucumber/api/#tag-expressions


EXAMPLE:
-----------------------------------------------------------------

A cucumber test runner selects some scenarios by using tag-expressions and runs them:

.. code:: sh

    # -- 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:

.. code:: gherkin

    # -- 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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cucumber/tag-expressions",
    "name": "cucumber-tag-expressions",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=2.7",
    "maintainer_email": "",
    "keywords": "BDD,testing,cucumber,tag-expressions,behave",
    "author": "Jens Engel",
    "author_email": "jenisys@noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/6f/9b/b90d1a022d9d81d6b4bc2d1e212cbdab1482bf58c0de319378087ae5f513/cucumber-tag-expressions-6.1.0.tar.gz",
    "platform": "any",
    "description": ".. image:: https://github.com/cucumber/tag-expressions/actions/workflows/test-python.yml/badge.svg\n    :target: https://github.com/cucumber/tag-expressions/actions/workflows/test-python.yml\n    :alt: CI Build Status\n\n.. image:: https://img.shields.io/pypi/v/cucumber-tag-expressions.svg\n    :target: https://pypi.python.org/pypi/cucumber-tag-expressions\n    :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/l/cucumber-tag-expressions.svg\n    :target: https://pypi.python.org/pypi/cucumber-tag-expressions/\n    :alt: License\n\n.. |logo| image:: https://github.com/cucumber-ltd/brand/raw/master/images/png/notm/cucumber-black/cucumber-black-128.png\n\nCucumber tag-expressions for Python.\n\n|logo|\n\nCucumber tag-expressions provide readable boolean expressions\nto select features and scenarios marked with tags in Gherkin files\nin an easy way::\n\n    # -- SIMPLE TAG-EXPRESSION EXAMPLES:\n    @a and @b\n    @a or  @b\n    not @a\n\n    # -- MORE TAG-EXPRESSION EXAMPLES:\n    @a and not @b\n    (@a or @b) and not @c\n\nSEE ALSO:\n\n* https://cucumber.io/docs/cucumber/api/#tag-expressions\n\n\nEXAMPLE:\n-----------------------------------------------------------------\n\nA cucumber test runner selects some scenarios by using tag-expressions and runs them:\n\n.. code:: sh\n\n    # -- TAG-EXPRESSION: @one and @two\n    # EXPECTED: Selects and runs scenario \"Three\".\n    $ my_cucumber_test_runner --tags=\"@one and @two\" features/example.feature\n    ...\n\n    # -- TAG-EXPRESSION: @one or @two\n    # EXPECTED: Selects and runs scenarios \"One\", \"Two\" and \"Three\".\n    $ my_cucumber_test_runner --tags=\"@one or @two\" features/example.feature\n    ...\n\nby using the following feature file:\n\n.. code:: gherkin\n\n    # -- FILE: features/example.feature\n    Feature: Tag-Expressions Example\n\n      @one\n      Scenario: One\n        Given a step passes\n\n      @two\n      Scenario: Two\n        Given another step passes\n\n      @one @two\n      Scenario: Three\n        Given some step passes\n\n      Scenario: Four\n        Given another step passes\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Provides a tag-expression parser and evaluation logic for cucumber/behave",
    "version": "6.1.0",
    "project_urls": {
        "Download": "https://pypi.org/project/cucumber-tag-expressions",
        "Homepage": "https://github.com/cucumber/tag-expressions"
    },
    "split_keywords": [
        "bdd",
        "testing",
        "cucumber",
        "tag-expressions",
        "behave"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b672e31f62207c2fe24f530411cf9f07bbd8674941f5c0bfca7221d95945379",
                "md5": "6f435e68280da3c9a0c9017828b8f8bd",
                "sha256": "56f606fb3af85d9b7eb2f27b6bdd2850d02baa3bf92f6dc7891186e1e21a2319"
            },
            "downloads": -1,
            "filename": "cucumber_tag_expressions-6.1.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6f435e68280da3c9a0c9017828b8f8bd",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.7",
            "size": 8280,
            "upload_time": "2024-01-10T11:35:55",
            "upload_time_iso_8601": "2024-01-10T11:35:55.306792Z",
            "url": "https://files.pythonhosted.org/packages/8b/67/2e31f62207c2fe24f530411cf9f07bbd8674941f5c0bfca7221d95945379/cucumber_tag_expressions-6.1.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f9bb90d1a022d9d81d6b4bc2d1e212cbdab1482bf58c0de319378087ae5f513",
                "md5": "2c224b10ac72a5f9d351232f1ae9a830",
                "sha256": "3758d312315efac8215865db1783748df5ef66324352068b32f845b7707fed5b"
            },
            "downloads": -1,
            "filename": "cucumber-tag-expressions-6.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2c224b10ac72a5f9d351232f1ae9a830",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.7",
            "size": 37796,
            "upload_time": "2024-01-10T11:35:56",
            "upload_time_iso_8601": "2024-01-10T11:35:56.808072Z",
            "url": "https://files.pythonhosted.org/packages/6f/9b/b90d1a022d9d81d6b4bc2d1e212cbdab1482bf58c0de319378087ae5f513/cucumber-tag-expressions-6.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-10 11:35:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cucumber",
    "github_project": "tag-expressions",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cucumber-tag-expressions"
}
        
Elapsed time: 0.17714s