========================
pytest-fixturecollection
========================
.. image:: https://img.shields.io/pypi/v/pytest-fixturecollection.svg
:target: https://pypi.org/project/pytest-fixturecollection
:alt: PyPI version
.. image:: https://img.shields.io/pypi/pyversions/pytest-fixturecollection.svg
:target: https://pypi.org/project/pytest-fixturecollection
:alt: Python versions
.. image:: https://ci.appveyor.com/api/projects/status/github/jyejare/pytest-fixturecollection?branch=master
:target: https://ci.appveyor.com/project/jyejare/pytest-fixturecollection/branch/master
:alt: See Build Status on AppVeyor
A pytest plugin to collect tests based on fixtures being used in tests
----
This `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template.
Features
--------
* Filter tests collection/execution based on fixtures being used by tests
* One or more number(comma separated) of fixtures are supported with option `--uses-fixtures`
One can combine fixture based collection with pytests default options/plugins for further smart collection.
Requirements
------------
* Python >= 3.9
* Pytest >= 3.5
Installation
------------
You can install "pytest-fixturecollection" via `pip`_ from `PyPI`_::
$ pip install pytest-fixturecollection
Usage
-----
Once plugin is installed, run pytest command with "--uses-fixtures" option as shown below::
# pytest --uses-fixtures fixture1,fixture2 tests/
Explanation: All the tests using `fixture1` or `fixture2` inside tests directory would be collected and executed and rest tests would be uncollected (not executed). You can also choose to just `--collect-only` to view what tests are collected.
Contributing
------------
Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.
License
-------
Distributed under the terms of the `BSD-3`_ license, "pytest-fixturecollection" is free and open source software
Issues
------
If you encounter any problems, please `file an issue`_ along with a detailed description.
.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
.. _`@hackebrot`: https://github.com/hackebrot
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause
.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt
.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _`file an issue`: https://github.com/jyejare/pytest-fixturecollection/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi.org/project/pip/
.. _`PyPI`: https://pypi.org/project
Raw data
{
"_id": null,
"home_page": "https://github.com/RedhatQE/pytest-fixturecollection",
"name": "pytest-fixturecollection",
"maintainer": "Jitendra Yejare",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "jyejare@redhat.com",
"keywords": "",
"author": "Jitendra Yejare",
"author_email": "jyejare@redhat.com",
"download_url": "https://files.pythonhosted.org/packages/bf/5e/317f9e8009594dbbd81ac7375862845a99bdf8564a396cd3c6aa6c528645/pytest-fixturecollection-0.1.2.tar.gz",
"platform": null,
"description": "========================\npytest-fixturecollection\n========================\n\n.. image:: https://img.shields.io/pypi/v/pytest-fixturecollection.svg\n :target: https://pypi.org/project/pytest-fixturecollection\n :alt: PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-fixturecollection.svg\n :target: https://pypi.org/project/pytest-fixturecollection\n :alt: Python versions\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/jyejare/pytest-fixturecollection?branch=master\n :target: https://ci.appveyor.com/project/jyejare/pytest-fixturecollection/branch/master\n :alt: See Build Status on AppVeyor\n\nA pytest plugin to collect tests based on fixtures being used in tests\n\n----\n\nThis `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template.\n\n\nFeatures\n--------\n\n* Filter tests collection/execution based on fixtures being used by tests\n* One or more number(comma separated) of fixtures are supported with option `--uses-fixtures`\n\nOne can combine fixture based collection with pytests default options/plugins for further smart collection.\n\nRequirements\n------------\n\n* Python >= 3.9\n* Pytest >= 3.5\n\n\n\nInstallation\n------------\n\nYou can install \"pytest-fixturecollection\" via `pip`_ from `PyPI`_::\n\n $ pip install pytest-fixturecollection\n\n\nUsage\n-----\n\n\nOnce plugin is installed, run pytest command with \"--uses-fixtures\" option as shown below::\n\n # pytest --uses-fixtures fixture1,fixture2 tests/\n\n\nExplanation: All the tests using `fixture1` or `fixture2` inside tests directory would be collected and executed and rest tests would be uncollected (not executed). You can also choose to just `--collect-only` to view what tests are collected.\n\nContributing\n------------\nContributions are very welcome. Tests can be run with `tox`_, please ensure\nthe coverage at least stays the same before you submit a pull request.\n\nLicense\n-------\n\nDistributed under the terms of the `BSD-3`_ license, \"pytest-fixturecollection\" is free and open source software\n\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\n.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter\n.. _`@hackebrot`: https://github.com/hackebrot\n.. _`MIT`: http://opensource.org/licenses/MIT\n.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause\n.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt\n.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0\n.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin\n.. _`file an issue`: https://github.com/jyejare/pytest-fixturecollection/issues\n.. _`pytest`: https://github.com/pytest-dev/pytest\n.. _`tox`: https://tox.readthedocs.io/en/latest/\n.. _`pip`: https://pypi.org/project/pip/\n.. _`PyPI`: https://pypi.org/project\n",
"bugtrack_url": null,
"license": "BSD-3",
"summary": "A pytest plugin to collect tests based on fixtures being used by tests",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/RedhatQE/pytest-fixturecollection"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0a6756bd471fbad28d1146ba2eaafa9d373ef8bef87c2986e59cab2d23f90dd5",
"md5": "6bd594059ac8aadcb28fb33385e97f8e",
"sha256": "0253e12a58ae8d5458ee03bd3c1f9815fda345fe2bd07310711d9eee1df5617c"
},
"downloads": -1,
"filename": "pytest_fixturecollection-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6bd594059ac8aadcb28fb33385e97f8e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4471,
"upload_time": "2024-02-22T08:39:00",
"upload_time_iso_8601": "2024-02-22T08:39:00.000689Z",
"url": "https://files.pythonhosted.org/packages/0a/67/56bd471fbad28d1146ba2eaafa9d373ef8bef87c2986e59cab2d23f90dd5/pytest_fixturecollection-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bf5e317f9e8009594dbbd81ac7375862845a99bdf8564a396cd3c6aa6c528645",
"md5": "9105b1c2b8fd7b7908d9db3174217447",
"sha256": "62b072a368aa2f24177996fa49135675d32be26abe24abb7063c0618cca5436e"
},
"downloads": -1,
"filename": "pytest-fixturecollection-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "9105b1c2b8fd7b7908d9db3174217447",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 4494,
"upload_time": "2024-02-22T08:39:02",
"upload_time_iso_8601": "2024-02-22T08:39:02.755073Z",
"url": "https://files.pythonhosted.org/packages/bf/5e/317f9e8009594dbbd81ac7375862845a99bdf8564a396cd3c6aa6c528645/pytest-fixturecollection-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-22 08:39:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RedhatQE",
"github_project": "pytest-fixturecollection",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"appveyor": true,
"tox": true,
"lcname": "pytest-fixturecollection"
}