{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/5"}],"enrichment":{"capability":"A pytest plugin that selects tests to run using Python regular expressions matched against test node IDs, offering finer control than pytest's built-in `-k` flag.","skillfed_tags":["pytest-plugin","test-selection","abandoned"],"use_cases":["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"],"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.\n\nThe plugin is useful when you need precise test selection that substring matching cannot easily express\u2014for 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.","worth_installing":"No. The package is abandoned (last release 2023-05-29, no commits since) and has minimal maintenance signal. While it solves a real problem\u2014regex-based test selection\u2014pytest'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."},"id":"pytest-regex","links":{"html":"https://skillfed.io/packages/pytest-regex","md":"https://skillfed.io/packages/pytest-regex.md","pypi":"https://pypi.org/project/pytest-regex/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2023-05-29","license_spdx":null,"license_treatment":"permissive","name":"pytest-regex","python_support":"supports_current","summary":"Select pytest tests with regular expressions"},"popularity":{"monthly_downloads":112819,"position":12357,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.0"}
