--- id: pytest-instafail version: "0.5.0" license: BSD license_treatment: permissive maintenance: active --- # pytest-instafail — pytest plugin to show failures instantly License: permissive · Maintenance: active · Downloads: 7.3M/mo ## What it is and what it does pytest-instafail is a pytest plugin that changes how test failures are reported during a test run. Instead of collecting all failures and displaying them at the end of the session, it shows each failure or error as it happens, giving you immediate feedback on what broke. This is particularly useful during development when you want to see problems right away rather than waiting for the full test suite to complete. The plugin integrates seamlessly into pytest's reporting system and requires only a single command-line flag (--instafail) to enable. It has a single runtime dependency on pytest itself, making it lightweight and easy to adopt in any pytest-based project. The package supports Python 3.7 through 3.11 and PyPy3, and has been actively maintained since its initial release in 2013. Use it for: - Enable faster feedback loops during test-driven development by seeing failures immediately instead of waiting for the full test suite. - Diagnose cascading test failures more quickly by identifying the first failure in a chain without running the entire suite. - Integrate into CI/CD pipelines where early failure detection can save time and resources. - Debug flaky tests by observing the exact moment a test fails in real time rather than in a summary report. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A pytest plugin that displays test failures and errors immediately as they occur, rather than deferring them until the end of the test session. Yes. This is a low-friction, well-maintained plugin with no security issues that directly improves the test development experience. If you run pytest regularly and want faster feedback on failures, it's worth adding to your workflow—the --instafail flag is optional, so you can enable it only when needed. ## Install pip install pytest-instafail uv add pytest-instafail poetry add pytest-instafail ## Installing pytest-instafail Before you install: Low friction installation; the package depends only on pytest and is distributed as a pure Python wheel. Maintenance is active with recent commits and no known vulnerabilities. License in practice: BSD license is permissive; you can use, modify, and distribute this package with minimal restrictions, making it safe for both open-source and commercial projects. Quickstart: pip install pytest-instafail Then run tests with: pytest --instafail Requires pytest 5 or newer and Python 3.7 or PyPy3. Verify before relying: - Whether the plugin works correctly with pytest's parallel execution modes (e.g., pytest-xdist). - Performance impact on large test suites with many concurrent failures. ## Package facts - License: BSD (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 7.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags pytest instant failure display, show test failures immediately, pytest plugin real-time errors, instant test failure output, pytest fail fast feedback, live test error reporting, pytest-plugin, test-feedback [View on SkillFed](https://skillfed.io/packages/pytest-instafail) · [View on PyPI](https://pypi.org/project/pytest-instafail/)