{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"A pytest plugin that lets you customize the exit code pytest returns when tests fail or when no tests are found, instead of using pytest's default exit codes.","skillfed_tags":["pytest-plugin","ci-cd"],"use_cases":["Suppress the exit code when pytest finds no tests, allowing CI pipelines to continue without treating it as a failure.","Suppress the exit code when tests fail, so your build system can decide how to handle test failures independently.","Integrate pytest into legacy CI/CD systems that expect different exit codes than pytest's defaults."],"what_it_does":"pytest-custom-exit-code is a pytest plugin that overrides the default exit codes pytest returns at the end of a test session. Normally, pytest exits with specific codes to signal test outcomes (e.g., 1 for failures, 5 for no tests collected). This plugin adds command-line flags to suppress or customize those exit codes in specific scenarios\u2014for instance, to exit with 0 even when tests fail or when no tests are found, which can be useful in CI/CD pipelines where you want to handle test outcomes differently.\n\nThe plugin depends only on pytest and installs as a wheel with no compiled dependencies. It is straightforward to use via command-line flags passed to pytest. However, the project has been abandoned since 2020, with no updates to support newer pytest or Python versions, so compatibility with current environments is uncertain.","worth_installing":"No. The package is abandoned (last update 2020) and compatibility with modern pytest and Python versions is unverified. If you need custom exit code handling, consider whether pytest's native exit codes meet your needs or explore actively maintained alternatives before relying on this plugin."},"id":"pytest-custom-exit-code","links":{"html":"https://skillfed.io/packages/pytest-custom-exit-code","md":"https://skillfed.io/packages/pytest-custom-exit-code.md","pypi":"https://pypi.org/project/pytest-custom-exit-code/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-08-07","license_spdx":null,"license_treatment":"permissive","name":"pytest-custom-exit-code","python_support":"supports_current","summary":"Exit pytest test session with custom exit code in different scenarios"},"popularity":{"monthly_downloads":7855803,"position":1688,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
