{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"A pytest plugin that runs only tests marked with @pytest.mark.only, skipping all others unless the marker is disabled with --no-only.","skillfed_tags":["test-filtering","development-workflow"],"use_cases":["Isolate a failing test during debugging without commenting out or deleting other tests","Focus on a specific test class or module during active development","Temporarily run only new tests while implementing a feature, then remove the marker before commit","Use the bundled pylint plugin to catch stray @pytest.mark.only markers before they reach version control"],"what_it_does":"pytest-only is a pytest plugin that selectively runs only the tests you mark with @pytest.mark.only, skipping all unmarked tests in the same run. If no tests are marked, all tests run normally. You can apply the marker to individual test functions, entire test classes, or at the module level via pytestmark. The plugin also includes a pylint checker to warn against accidentally committing focused tests.\n\nThe package is a thin wrapper around pytest's marker system, designed for development workflows where you want to isolate a single test or a small subset without modifying your test suite structure. It borrows the concept from mocha's .only pattern and provides a --no-only flag to temporarily disable the filtering behavior.","worth_installing":"Yes, if you use pytest and want a lightweight way to focus on individual tests during development. The plugin is stable, has no security vulnerabilities, and adds minimal friction (only pytest as a dependency). Dormant maintenance is not a concern for a narrow, stable tool, but verify compatibility with your pytest version if you run a very recent release."},"id":"pytest-only","links":{"html":"https://skillfed.io/packages/pytest-only","md":"https://skillfed.io/packages/pytest-only.md","pypi":"https://pypi.org/project/pytest-only/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-05-27","license_spdx":null,"license_treatment":"permissive","name":"pytest-only","python_support":"supports_current","summary":"Use @pytest.mark.only to run a single test"},"popularity":{"monthly_downloads":76871,"position":14585,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.1.2"}
