{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"A pytest plugin that adds a `-P` option to run tests for specific sub-packages by name, filtering test discovery to match named sub-package paths.","skillfed_tags":["pytest-plugin","test-filtering"],"use_cases":["Run tests for a single sub-package in a large monorepo without writing complex glob patterns.","Test both code and narrative documentation for a specific sub-package when used with pytest-doctestplus.","Quickly validate changes to a particular namespace within a multi-level package structure."],"what_it_does":"pytest-filter-subpackage is a pytest plugin that simplifies running tests for specific sub-packages within a larger project. Instead of writing out glob patterns like `**/wcs **/io/fits`, you pass a comma-separated list of sub-package names to the `-P` option, and the plugin translates that into the appropriate test discovery paths. It depends on pytest and packaging.\n\nThe plugin is designed for projects with nested package structures where you want to test a particular sub-package and its documentation together. It integrates with pytest's discovery mechanism and is automatically registered when installed. The fact sheet indicates it supports Python 3.8 through 3.12 and is actively maintained.","worth_installing":"Yes, if you work with pytest projects that have nested sub-packages and want a simpler way to filter test runs. The plugin is lightweight, actively maintained, has no known vulnerabilities, and carries a permissive license. Install friction is minimal. It's most valuable in projects where you frequently test individual sub-packages."},"id":"pytest-filter-subpackage","links":{"html":"https://skillfed.io/packages/pytest-filter-subpackage","md":"https://skillfed.io/packages/pytest-filter-subpackage.md","pypi":"https://pypi.org/project/pytest-filter-subpackage/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-03-04","license_spdx":null,"license_treatment":"permissive","name":"pytest-filter-subpackage","python_support":"supports_current","summary":"Pytest plugin for filtering based on sub-packages"},"popularity":{"monthly_downloads":334728,"position":7485,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.0"}
