$npx skillfedfor your agent

pytest-regex

Select pytest tests with regular expressions

SkipPyPI TestingReleased May 2023112.8K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_regex-0.2.0-py3-none-any.whl
v0.2.0 · released 2023-05-29 · Python >=3.8 · 1 runtime deps: pytest

No. The package is abandoned (last release 2023-05-29, no commits since) and has minimal maintenance signal. While it solves a real problem—regex-based test selection—pytest's `-k` flag and other selection mechanisms are actively maintained and cover most use cases. Install only if you have a specific regex pattern requirement that `-k` cannot express and are willing to maintain a fork if needed.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction: pure Python wheel with only pytest as a runtime dependency.
  • However, the package is abandoned—last release was 2023-05-29 and no commits since then—so expect no maintenance or bug fixes going forward.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or redistribution in your own projects.

last release 2023-05-29 (1173 days) · last repo commit 2023-05-29 · 4 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 112,819 downloads/mo, #12,357 on PyPI

Verify before relying

pip install pytest-regex
python -m pytest --regex "(.*test_3d$|.*test_3d_example$)"
  • Whether the regex matching is applied to the full node ID or only specific parts of it
  • Whether the plugin works with pytest parametrization and fixture combinations
  • Performance impact when running against large test suites with complex regex patterns
Same gist for agents: .md · .json

What it is and what it does

pytest-regex is a pytest plugin that extends test selection by allowing you to specify tests using Python regular expressions. Instead of pytest's `-k` flag (which does substring matching), you pass a `--regex` argument with a regex pattern that is matched against the full test node ID (e.g., `path/to/test_module.py::TestClass::test_name[parameter_value]`). Tests whose node IDs match the pattern are selected and run.

The plugin is useful when you need precise test selection that substring matching cannot easily express—for example, selecting only tests that end with exactly `test_3d` or choosing between similar test names. It was developed for use with large projects like SciPy where test discovery and selection can be complex. The package depends only on pytest and installs as a pure Python wheel with no compiled dependencies.

Use it for

  • Select tests by exact name suffix or prefix using anchored regex patterns (e.g., `.*test_3d$` to match only tests ending in `test_3d`)
  • Filter tests across multiple modules or classes using a single regex pattern that matches the full node ID path
  • Combine multiple test selection criteria in one regex that would be cumbersome or impossible with pytest's `-k` flag
  • Run a subset of parametrized tests by matching parameter values embedded in the node ID

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No.

The package is abandoned (last release 2023-05-29, no commits since) and has minimal maintenance signal. While it solves a real problem—regex-based test selection—pytest's `-k` flag and other selection mechanisms are actively maintained and cover most use cases. Install only if you have a specific regex pattern requirement that `-k` cannot express and are willing to maintain a fork if needed.

Install

pytest-regex on PyPI

Before you install

Low friction: pure Python wheel with only pytest as a runtime dependency. However, the package is abandoned—last release was 2023-05-29 and no commits since then—so expect no maintenance or bug fixes going forward.

License in practice

MIT license is permissive and imposes no restrictions on use, modification, or redistribution in your own projects.

Quickstart

pip install pytest-regex
python -m pytest --regex "(.*test_3d$|.*test_3d_example$)"

Verify before relying

  • Whether the regex matching is applied to the full node ID or only specific parts of it
  • Whether the plugin works with pytest parametrization and fixture combinations
  • Performance impact when running against large test suites with complex regex patterns

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pytest
MaintenanceAbandoned 1,173 days since the last release
Last repo commit
First released
Downloads112,819 / month, #12,357 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Testing

Evidence: pytest_regex-0.2.0-py3-none-any.whl

Tags

Capabilities
pytest test selection regexrun tests by pattern matchingpytest node id filteringregular expression test runnerpytest plugin test selectionmatch tests with regexpytest advanced test filtering
Topics
pytest-plugintest-selectionabandoned

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 selection regex”

  • pytest-regexA pytest plugin that selects tests to run using Python regular…
  • re-assertProvides a helper class for regex assertions that shows exactly where…
  • pytest-raisesProvides pytest markers (@pytest.mark.raises and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

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.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

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.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

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.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

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.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also pytest-mypy-plugins · re-assert · regress · iregexp-check · flpc · exrex · repath · pynose · regexploit · greenery