{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"pytest-xprocess manages external processes (like servers or services) across pytest test runs, allowing tests to start, reuse, and control long-lived processes without restarting them for each test.","skillfed_tags":["pytest-plugin","process-management","integration-testing"],"use_cases":["Start a database server once and reuse it across all tests instead of spinning up a new instance per test.","Manage a mock API or HTTP service that multiple test cases need to communicate with.","Control background worker processes or message queues during integration testing.","Reduce test suite runtime by avoiding repeated startup costs of external services."],"what_it_does":"pytest-xprocess is a pytest plugin that handles the lifecycle of external processes during test execution. Rather than starting and stopping a service (like a database, cache, or API server) for each test, it manages long-lived processes that can be reused across multiple tests, reducing test overhead and improving speed.\n\nThe plugin works by maintaining process state across test runs and providing fixtures to interact with these processes. It depends on pytest for the test framework integration and psutil for cross-platform process management. It supports Python 3.8 through 3.11 and is classified as Beta stability, indicating it is mature but may still have minor API changes.","worth_installing":"Yes, if your test suite relies on external processes. The plugin is actively maintained, has low install friction, carries no security vulnerabilities, and uses a permissive MIT license. It is well-suited for integration tests that need to manage services across multiple test runs."},"id":"pytest-xprocess","links":{"html":"https://skillfed.io/packages/pytest-xprocess","md":"https://skillfed.io/packages/pytest-xprocess.md","pypi":"https://pypi.org/project/pytest-xprocess/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-05-19","license_spdx":null,"license_treatment":"permissive","name":"pytest-xprocess","python_support":"supports_current","summary":"A pytest plugin for managing processes across test runs."},"popularity":{"monthly_downloads":307612,"position":7774,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.2"}
