{"id":25640536,"url":"https://github.com/kstrauser/pytest-fastest","last_synced_at":"2025-04-15T02:40:56.795Z","repository":{"id":52705116,"uuid":"133882201","full_name":"kstrauser/pytest-fastest","owner":"kstrauser","description":"Use Git and coverage data to run only needed tests","archived":false,"fork":false,"pushed_at":"2025-01-18T18:05:38.000Z","size":218,"stargazers_count":21,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-04-10T17:38:51.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pytest-fastest.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kstrauser.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-18T00:25:57.000Z","updated_at":"2025-01-19T23:10:30.000Z","dependencies_parsed_at":"2024-08-03T17:52:02.920Z","dependency_job_id":"6f16d61d-81e3-4732-900d-159aa3bf97d6","html_url":"https://github.com/kstrauser/pytest-fastest","commit_stats":{"total_commits":46,"total_committers":4,"mean_commits":11.5,"dds":"0.10869565217391308","last_synced_commit":"f9b4ae736a1c8adde580925248da1ed51cb90c17"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstrauser%2Fpytest-fastest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstrauser%2Fpytest-fastest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstrauser%2Fpytest-fastest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kstrauser%2Fpytest-fastest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kstrauser","download_url":"https://codeload.github.com/kstrauser/pytest-fastest/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248996744,"owners_count":21195772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-23T04:40:09.246Z","updated_at":"2025-04-15T02:40:56.776Z","avatar_url":"https://github.com/kstrauser.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==============\npytest-fastest\n==============\n\n.. image:: https://img.shields.io/pypi/v/pytest-fastest.svg\n    :target: https://pypi.org/project/pytest-fastest\n    :alt: PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-fastest.svg\n    :target: https://pypi.org/project/pytest-fastest\n    :alt: Python versions\n\n.. image:: https://travis-ci.com/kstrauser/pytest-fastest.svg?branch=dev\n    :target: https://travis-ci.com/kstrauser/pytest-fastest\n    :alt: See Build Status on Travis CI\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/kstrauser/pytest-fastest?branch=dev\n    :target: https://ci.appveyor.com/project/kstrauser/pytest-fastest/branch/dev\n    :alt: See Build Status on AppVeyor\n\nUse SCM and coverage to run only needed 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* Gathers coverage data from tests to track which tests call functions from which modules.\n* Uses Git to track changes from a given commit to find the minimum set of tests that need to run to test new changes, then skips everything else.\n\n\nRequirements\n------------\n\n* Python 3.8+\n* pytest 3.4.0+\n\n\nInstallation\n------------\n\nYou can install \"pytest-fastest\" via `pip`_ from `PyPI`_::\n\n    $ pip install pytest-fastest\n\n\nUsage\n-----\n\npytest-fastest can be set to run only tests:\n\n* That test modules that have changed in Git,\n* Tests that we don't already have coverage data for, and\n* Tests that we've added or changed.\n\nIn most common development workflows where you make short-lived branches\noff a main \"master\" or \"dev\" branch, the amount of code that actually\nchanges while fixing a bug or writing a feature is usually just a small\nportion of the whole codebase. Instead of running thousands of tests\nafter each change, pytest-fastest can identify the relevant ones that\nthoroughly test your work but skip all the things you *haven't* changed.\n\nTo use it:\n\n* In ``pytest.ini``, set ``fastest_commit`` to the name of a Git commit to\n  compare your current work against. (You can also set or override it on the\n  command line with ``--fastest-commit``). This is required if you want to\n  skip tests, which is the main reason for using this plugin.\n\n* Use the command line argument ``--fastest-mode`` to choice the appropriate\n  running mode:\n\n  - ``all`` (default): Run all tests without collecting coverage data. This\n    emulates normal pytest behavior and has no effect on performance.\n  - ``skip``: Skip tests that don't need to be run, but update coverage data\n    on the ones that do run. This will usually be faster than ``all``, but\n    because collecting coverage information takes some time, as the number\n    of un-skippable tests grows very large it may actually become slower.\n  - ``gather``: Don't skip any tests, but do gather coverage data. This is\n    slower than ``all`` but can be used to seed the coverage cache.\n  - ``cache``: This is a fast mode for fixing existing tests. It skips tests\n    but doesn't update the coverage cache. It will never be slower than\n    ``all`` and will always be faster than ``skip``.\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 `MIT`_ license, \"pytest-fastest\" 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/kstrauser/pytest-fastest/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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkstrauser%2Fpytest-fastest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkstrauser%2Fpytest-fastest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkstrauser%2Fpytest-fastest/lists"}