pytest-sort


Namepytest-sort JSON
Version 1.3.1 PyPI version JSON
download
home_page
SummaryTools for sorting test cases
upload_time2024-01-07 23:19:40
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright (c) 2023 Peter Busch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords test pytest order pytest-order sort random pytest-random pytest-random-order randomly pytest-randomly
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Homepage](https://img.shields.io/badge/Homepage-github-white?logo=github)](https://github.com/WiredNerd/pytest-sort)
[![python>=3.8](https://img.shields.io/badge/python->=3.8-orange?logo=python&logoColor=green)](https://pypi.org/project/pytest-sort)
[![PyPI - Version](https://img.shields.io/pypi/v/pytest-sort?logo=pypi&logoColor=white)](https://pypi.org/project/pytest-sort)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/pytest-sort)](https://pypistats.org/packages/pytest-sort)
[![PyPI - License](https://img.shields.io/pypi/l/pytest-sort)](https://github.com/WiredNerd/pytest-sort/blob/main/LICENSE)

[![Code Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FWiredNerd%2Fpytest-sort%2Fmain%2Fcode-coverage.json&query=%24.totals.percent_covered_display&suffix=%25&label=Code%20Coverage&color=teal&logo=pytest&logoColor=green)](https://pytest-cov.readthedocs.io)
[![Mutation Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FWiredNerd%2Fpytest-sort%2Fmain%2Fmutation-testing-report.json&query=%24.summary.coverage_display&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTM1Ljc1bW0iIGhlaWdodD0iMTE4Ljc1bW0iIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDEzNS43NSAxMTguNzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI%2BCiA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDAuOTg4IC01Ni43NjUpIiBzdHJva2U9IiMwMDAiPgogIDxwYXRoIGQ9Im02Ny42NDMgMTU3LjE4Yy04LjUwMi00LjU1NjMtMTUuNzM3LTEyLjA5Ny0xNy43NjgtMjEuNzY4LTMuMDE0OC0xMi40MzEtMi44MDAxLTI1LjQ3LTEuMTU0Mi0zOC4wNzcgMS43Mzc5LTExLjA0NCAxMC44NzktMTguNzAzIDE5LjIzNy0yNS4xNCA3Ljk1NjItNS4zNTg3IDE2Ljc3Mi0xMC4wNzUgMjYuMjE3LTExLjk1NyAxMS4zNzctMS4zNjgxIDI0Ljk5NC0xLjMzODYgMzMuMTY0IDguMDQyOSAzLjk4MjQgNC4yMTQ0IDUuNTI1OCAxMC4wMzEgNC45NjY3IDE1LjcwMS0wLjAzODkgNy4xNTQgMi40MjM2IDE1LjIxMyA5LjQwOTMgMTguNDU1IDkuMTIxNSA1LjIyODUgMjAuMTgxIDQuNDEwNiAyOS42NzUgOC42MTg3IDUuNzA5IDUuODg3NS0yLjAzNzEgMTMuMDI4LTQuMDcxNyAxOC44NTktMi43MDMzIDc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HRoPSI5IiBmaWxsPSIjMDAwIi8%2BCiAgPC9nPgogPC9nPgo8L3N2Zz4%3D&label=Mutation%20Coverage&color=3A438C)](https://poodle.readthedocs.io/)
[![Documentation](https://img.shields.io/badge/Read%20the%20Docs-pytest_sort-blue?logo=readthedocs&logoColor=FFF)](https://pytest-sort.readthedocs.io/)

[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![Code Style: black](https://img.shields.io/badge/Code_Style-Black-black?logo=python&logoColor=black)](https://black.readthedocs.io)
[![Linter: ruff](https://img.shields.io/badge/Linter-ruff-purple?logo=Ruff)](https://beta.ruff.rs/docs/)
[![Snyk Security](https://img.shields.io/badge/Snyk%20Security-monitored-939?logo=snyk)](https://snyk.io/)



# Pytest-Sort

This pytest plugin is used to help identify application state leaks in your test suite.  It does this by automatically changing the execution order of test cases.

How frustrating is it to have a test case that works fine when runs by itself, but fails when run with the rest of the suite?  By running tests in a random order, the culprit of such problems can be identified much earlier in the development process.  Alternately, running in ordered and reverse order can help find the cause of the problem in existing test suites.

## Features

* Multiple sort options including: Random, Fastest, Reverse, and more.
* Group test cases into buckets that are each sorted separately.
* Control sort order of the buckets.
* Use Pytest markers to always run specific test cases in order.

## Quick Start

Installation:

```
pip install pytest-sort --upgrade
```

Running with pytest-sort:

```
pytest --sort-mode=random
```

## Documentation:

- Usage, Examples, Configuration, and more: https://pytest-sort.readthedocs.io/

## Contribute

- Issue Tracker: https://github.com/WiredNerd/pytest-sort/issues
- Source Code: https://github.com/WiredNerd/pytest-sort

## Support

If you are having issues, please let us know.

I can be contacted at: pbuschmail-pytestsort@yahoo.com

Or by opening an issue: https://github.com/WiredNerd/pytest-sort/issues

## License

The project is licensed under the MIT license.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pytest-sort",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "WiredNerd <pbuschmail-pytestsort@yahoo.com>",
    "keywords": "test,pytest,order,pytest-order,sort,random,pytest-random,pytest-random-order,randomly,pytest-randomly",
    "author": "",
    "author_email": "WiredNerd <pbuschmail-pytestsort@yahoo.com>",
    "download_url": "https://files.pythonhosted.org/packages/6c/44/825aced209329ebc54111e78733273d643a1333d2b4ad7b5a79f2ce80397/pytest-sort-1.3.1.tar.gz",
    "platform": null,
    "description": "[![Homepage](https://img.shields.io/badge/Homepage-github-white?logo=github)](https://github.com/WiredNerd/pytest-sort)\n[![python>=3.8](https://img.shields.io/badge/python->=3.8-orange?logo=python&logoColor=green)](https://pypi.org/project/pytest-sort)\n[![PyPI - Version](https://img.shields.io/pypi/v/pytest-sort?logo=pypi&logoColor=white)](https://pypi.org/project/pytest-sort)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/pytest-sort)](https://pypistats.org/packages/pytest-sort)\n[![PyPI - License](https://img.shields.io/pypi/l/pytest-sort)](https://github.com/WiredNerd/pytest-sort/blob/main/LICENSE)\n\n[![Code Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FWiredNerd%2Fpytest-sort%2Fmain%2Fcode-coverage.json&query=%24.totals.percent_covered_display&suffix=%25&label=Code%20Coverage&color=teal&logo=pytest&logoColor=green)](https://pytest-cov.readthedocs.io)\n[![Mutation Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FWiredNerd%2Fpytest-sort%2Fmain%2Fmutation-testing-report.json&query=%24.summary.coverage_display&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTM1Ljc1bW0iIGhlaWdodD0iMTE4Ljc1bW0iIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDEzNS43NSAxMTguNzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI%2BCiA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDAuOTg4IC01Ni43NjUpIiBzdH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IiMwMDAiLz4KICAgPGVsbGlwc2UgY3g9IjExNy4xMSIgY3k9IjEwNi4wNyIgcng9IjEwLjc1IiByeT0iNi40MTEzIiBzdHJva2Utd2lkdGg9IjkiIGZpbGw9IiMwMDAiLz4KICAgPHBhdGggZD0ibTgxLjAyMiA4Ny41M2M1LjU0OTEgMi40MjY3IDQuODU2MiAyLjcxMzMgNC43NDY3IDcuMjgwMS0wLjA5MTkgMTMuNDMgNS4xNzE0IDI2Ljc2IDQuODE1NSA0MC42NzggMC4xMjQ5IDYuMDMxMS0xLjA0MTkgMTAuMjA1LTMuNjk1NiAxNy41MTYtNS45MjY5IDIuNzI3My0xMi41NjkgNS40ODE0LTE5LjI0NSA0LjE3MzgtNi45NjUzLTQuOTI2OC0xMy4yMTUtNy40NDMzLTE2LjQwMS0xNy4zODctMy40MDgzLTE0LjU1OC01Ljc0MjYtMzIuMTI2LTEuMzgwNS00NS4zNTkgMS41MTItNy42OTEyIDI4LjMyMi04LjEzMTkgMzEuMTU5LTYuOTAyNCIgc3Ryb2tlLXdpZHRoPSI5IiBmaWxsPSIjMDAwIi8%2BCiAgPC9nPgogPC9nPgo8L3N2Zz4%3D&label=Mutation%20Coverage&color=3A438C)](https://poodle.readthedocs.io/)\n[![Documentation](https://img.shields.io/badge/Read%20the%20Docs-pytest_sort-blue?logo=readthedocs&logoColor=FFF)](https://pytest-sort.readthedocs.io/)\n\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)\n[![Code Style: black](https://img.shields.io/badge/Code_Style-Black-black?logo=python&logoColor=black)](https://black.readthedocs.io)\n[![Linter: ruff](https://img.shields.io/badge/Linter-ruff-purple?logo=Ruff)](https://beta.ruff.rs/docs/)\n[![Snyk Security](https://img.shields.io/badge/Snyk%20Security-monitored-939?logo=snyk)](https://snyk.io/)\n\n\n\n# Pytest-Sort\n\nThis pytest plugin is used to help identify application state leaks in your test suite.  It does this by automatically changing the execution order of test cases.\n\nHow frustrating is it to have a test case that works fine when runs by itself, but fails when run with the rest of the suite?  By running tests in a random order, the culprit of such problems can be identified much earlier in the development process.  Alternately, running in ordered and reverse order can help find the cause of the problem in existing test suites.\n\n## Features\n\n* Multiple sort options including: Random, Fastest, Reverse, and more.\n* Group test cases into buckets that are each sorted separately.\n* Control sort order of the buckets.\n* Use Pytest markers to always run specific test cases in order.\n\n## Quick Start\n\nInstallation:\n\n```\npip install pytest-sort --upgrade\n```\n\nRunning with pytest-sort:\n\n```\npytest --sort-mode=random\n```\n\n## Documentation:\n\n- Usage, Examples, Configuration, and more: https://pytest-sort.readthedocs.io/\n\n## Contribute\n\n- Issue Tracker: https://github.com/WiredNerd/pytest-sort/issues\n- Source Code: https://github.com/WiredNerd/pytest-sort\n\n## Support\n\nIf you are having issues, please let us know.\n\nI can be contacted at: pbuschmail-pytestsort@yahoo.com\n\nOr by opening an issue: https://github.com/WiredNerd/pytest-sort/issues\n\n## License\n\nThe project is licensed under the MIT license.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Peter Busch  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Tools for sorting test cases",
    "version": "1.3.1",
    "project_urls": {
        "Documentation": "https://pytest-sort.readthedocs.io/",
        "Homepage": "https://github.com/WiredNerd/pytest-sort",
        "Issue Tracker": "https://github.com/WiredNerd/pytest-sort/issues"
    },
    "split_keywords": [
        "test",
        "pytest",
        "order",
        "pytest-order",
        "sort",
        "random",
        "pytest-random",
        "pytest-random-order",
        "randomly",
        "pytest-randomly"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9be9ce85bb73c4dcd3c3208a554908df410d620fb5f638d9793ddf20440241fa",
                "md5": "a02908a4c18c4820ce02eab708f9a573",
                "sha256": "af78884795b0c9d4aab7d7adb0b6dfabc6fb67507ab8bc866c3fc01a0cd7d5ba"
            },
            "downloads": -1,
            "filename": "pytest_sort-1.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a02908a4c18c4820ce02eab708f9a573",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13752,
            "upload_time": "2024-01-07T23:19:38",
            "upload_time_iso_8601": "2024-01-07T23:19:38.065406Z",
            "url": "https://files.pythonhosted.org/packages/9b/e9/ce85bb73c4dcd3c3208a554908df410d620fb5f638d9793ddf20440241fa/pytest_sort-1.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6c44825aced209329ebc54111e78733273d643a1333d2b4ad7b5a79f2ce80397",
                "md5": "6e84d75cdd39347c089fe8a99bb83326",
                "sha256": "3a65c570f797a2476295b5f61c648d27dd7a227319c05d0bec42b2ca368bbe9e"
            },
            "downloads": -1,
            "filename": "pytest-sort-1.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6e84d75cdd39347c089fe8a99bb83326",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 26054,
            "upload_time": "2024-01-07T23:19:40",
            "upload_time_iso_8601": "2024-01-07T23:19:40.236850Z",
            "url": "https://files.pythonhosted.org/packages/6c/44/825aced209329ebc54111e78733273d643a1333d2b4ad7b5a79f2ce80397/pytest-sort-1.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-07 23:19:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "WiredNerd",
    "github_project": "pytest-sort",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pytest-sort"
}
        
Elapsed time: 0.20895s