{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"A pytest plugin that lets you tag tests with arbitrary strings and select or exclude them by tag during test runs, with optional tag combination and counting.","skillfed_tags":["pytest-plugin","test-filtering","test-organization"],"use_cases":["Organize integration, unit, and smoke tests by tag and run only the subset you need during development or CI.","Tag tests by component or feature (e.g., JIRA-XX, payment-module) and run all tests for a specific component.","Exclude flaky or slow tests from a test run using --exclude-tags without modifying test code.","Group related tests under a combined tag (e.g., 'all' = 'foo' + 'bar') and run them together.","Display all available tags in your test suite to discover what tags are in use."],"what_it_does":"pytest-tagging is a pytest plugin that replaces the standard pytest.mark system with a simpler tagging mechanism. Instead of registering marks upfront, you decorate tests with @pytest.mark.tags() using any arbitrary strings\u2014including variables from your codebase\u2014and then filter test runs by those tags using command-line options like --tags and --exclude-tags. The plugin supports both OR (default) and AND logic for multiple tags, can combine tags into groups, and displays a count of failures per tag.\n\nIt solves the friction of pytest's built-in mark registration, which requires pre-declaring marks and makes it awkward to use dynamic values. The plugin is lightweight (depends only on pytest), works across Python 3.8\u20133.13, and is thread-safe for parallel test execution.","worth_installing":"Yes, if you use pytest and find its mark registration cumbersome. The plugin is stable, permissively licensed, and has no known vulnerabilities. Dormant maintenance is not a concern here because the feature set is complete and the dependency surface is minimal. Install it when you want simpler, more flexible test filtering than pytest.mark provides."},"id":"pytest-tagging","links":{"html":"https://skillfed.io/packages/pytest-tagging","md":"https://skillfed.io/packages/pytest-tagging.md","pypi":"https://pypi.org/project/pytest-tagging/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-11-08","license_spdx":null,"license_treatment":"permissive","name":"pytest_tagging","python_support":"supports_current","summary":"a pytest plugin to tag tests"},"popularity":{"monthly_downloads":342890,"position":7392,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.6.0"}
