![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
.. image:: https://img.shields.io/pypi/v/pytest-fastest.svg :target: https://pypi.org/project/pytest-fastest :alt: PyPI version
.. image:: https://img.shields.io/pypi/pyversions/pytest-fastest.svg :target: https://pypi.org/project/pytest-fastest :alt: Python versions
.. image:: https://travis-ci.com/kstrauser/pytest-fastest.svg?branch=dev :target: https://travis-ci.com/kstrauser/pytest-fastest :alt: See Build Status on Travis CI
.. image:: https://ci.appveyor.com/api/projects/status/github/kstrauser/pytest-fastest?branch=dev :target: https://ci.appveyor.com/project/kstrauser/pytest-fastest/branch/dev :alt: See Build Status on AppVeyor
Use SCM and coverage to run only needed tests
This pytest
_ plugin was generated with Cookiecutter
_ along with @hackebrot
's cookiecutter-pytest-plugin
template.
You can install "pytest-fastest" via pip
_ from PyPI
_::
$ pip install pytest-fastest
pytest-fastest can be set to run only tests:
In most common development workflows where you make short-lived branches off a main "master" or "dev" branch, the amount of code that actually changes while fixing a bug or writing a feature is usually just a small portion of the whole codebase. Instead of running thousands of tests after each change, pytest-fastest can identify the relevant ones that thoroughly test your work but skip all the things you haven't changed.
To use it:
In pytest.ini
, set fastest_commit
to the name of a Git commit to
compare your current work against. (You can also set or override it on the
command line with --fastest-commit
). This is required if you want to
skip tests, which is the main reason for using this plugin.
Use the command line argument --fastest-mode
to choice the appropriate
running mode:
all
(default): Run all tests without collecting coverage data. This
emulates normal pytest behavior and has no effect on performance.skip
: Skip tests that don't need to be run, but update coverage data
on the ones that do run. This will usually be faster than all
, but
because collecting coverage information takes some time, as the number
of un-skippable tests grows very large it may actually become slower.gather
: Don't skip any tests, but do gather coverage data. This is
slower than all
but can be used to seed the coverage cache.cache
: This is a fast mode for fixing existing tests. It skips tests
but doesn't update the coverage cache. It will never be slower than
all
and will always be faster than skip
.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.
Distributed under the terms of the MIT
_ license, "pytest-fastest" is free and open source software
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/kstrauser/pytest-fastest/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
FAQs
Use SCM and coverage to run only needed tests
We found that pytest-fastest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.