pytest_tagging
a pytest plugin to tag tests
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires pytest to be installed; Python 3.8 or later.
- Low install friction; single dependency on pytest.
- Maintenance is dormant—last release was 644 days ago, but the repository is not archived and the latest commit is recent (2024-11-08), suggesting occasional updates without active development.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
last release 2024-11-08 (644 days) · last repo commit 2024-11-08 · 8 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 342,890 downloads/mo, #7,392 on PyPI
Alternatives
Verify before relying
pip install pytest-tagging
In your test file:
from pytest_tagging import combine_tags
import pytest
@pytest.mark.tags("integration", "smoke")
def test_example():
assert True
Run: pytest --tags integration- Thread-safety claim with pytest-parallel is stated in the description but not independently verified in the fact sheet.
What it is and 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—including variables from your codebase—and 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.
It 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–3.13, and is thread-safe for parallel test execution.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
pytest-tagging on PyPI
Before you install
Low install friction; single dependency on pytest. Maintenance is dormant—last release was 644 days ago, but the repository is not archived and the latest commit is recent (2024-11-08), suggesting occasional updates without active development.
Requires pytest to be installed; Python 3.8 or later.
License in practice
MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pytest-tagging
In your test file:
from pytest_tagging import combine_tags
import pytest
@pytest.mark.tags("integration", "smoke")
def test_example():
assert True
Run: pytest --tags integration
Verify before relying
- Thread-safety claim with pytest-parallel is stated in the description but not independently verified in the fact sheet.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepytest |
| Maintenance | Dormant 644 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 342,890 / month, #7,392 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pytest_tagging-1.6.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest test tagging”
- pytest_taggingA pytest plugin that lets you tag tests with arbitrary strings and…
- pytest-sentryA pytest plugin that sends test failure and performance data to…
- pytest-cppA pytest plugin that discovers and runs C++ tests from Google Test,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-ordering · pytest-catchlog · pytest-codeblocks · pytest-progress · pytest-parallel · pytest-timeout · pytest-reporter · cocotb-test · django-taggit