Pytest plugin that provides an @pytest.mark.only decorator to run a single test exclusively, ignoring all others. Current version 2.1.2, requires Python >=3.8, <4.0. Compatible with flake8 and pylint plugins to detect lingering only marks.
pip install pytest-onlyVerified import paths — ran on the pinned version, not inferred.
The @pytest.mark.only decorator causes pytest to skip all other tests and run only the marked test.
Run flake8 with the plugin or use a pre-commit hook to detect 'only' marks.
Ensure only one test has the @pytest.mark.only decorator at a time.
No dependency data recorded yet.