{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"A pytest plugin that runs each test in a forked subprocess to isolate crashes and segfaults, preventing a single test failure from terminating the entire test suite.","skillfed_tags":["subprocess-isolation","crash-recovery","c-extension-testing"],"use_cases":["Testing C/C++ bindings or extension modules that may crash the Python interpreter.","Running tests with monkey-patched global state that could leak between tests.","Detecting and reporting segfaults as test failures rather than suite termination.","Combining with pytest-xdist to parallelize tests while isolating crash-prone code.","Validating cleanup and teardown in tests that modify process-level state."],"what_it_does":"pytest-forked is a pytest plugin that isolates each test by running it in a forked subprocess. This allows tests involving C or C++ libraries\u2014or any code prone to crashing\u2014to fail gracefully without terminating the entire test run. A segfault or process death in one test does not affect subsequent tests.\n\nThe plugin is extracted from pytest-xdist's --forked module and can be used standalone with the --forked CLI flag, applied per-test via the @pytest.mark.forked decorator, or combined with pytest-xdist's parallel execution (e.g., pytest -n3 --forked) to run multiple test subprocesses in parallel, each forking individual tests. It is not available on Windows due to the absence of fork() support.","worth_installing":"Yes, if you test C/C++ libraries or crash-prone code on POSIX systems. The low install friction and active maintenance make it a straightforward addition to test suites that need crash isolation. Not applicable on Windows. The inactive status means minimal new features, but the core functionality is stable and the plugin remains functional."},"id":"pytest-forked","links":{"html":"https://skillfed.io/packages/pytest-forked","md":"https://skillfed.io/packages/pytest-forked.md","pypi":"https://pypi.org/project/pytest-forked/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-08","license_spdx":null,"license_treatment":"permissive","name":"pytest-forked","python_support":"supports_current","summary":"run tests in isolated forked subprocesses"},"popularity":{"monthly_downloads":7263193,"position":1761,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.7.5"}
