{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"A pytest plugin that sends test failure and performance data to Sentry, with special handling for flaky tests detected via pytest-rerunfailures.","skillfed_tags":["test-monitoring","ci-integration","flaky-test-tracking"],"use_cases":["Track flaky tests in CI that are hidden by automatic retry plugins, keeping visibility without breaking builds.","Identify slow test fixtures and test functions by sending performance transactions to Sentry.","Report all test failures on specific branches (e.g., main) by setting PYTEST_SENTRY_ALWAYS_REPORT=1.","Correlate test failures with CI metadata (branch, commit, environment) using Sentry's tagging system.","Disable Sentry reporting for specific tests using pytest markers when you want to exclude certain test runs."],"what_it_does":"pytest-sentry is a pytest plugin that integrates with Sentry to track and aggregate test run data. It is designed to work alongside pytest-rerunfailures to capture flaky test failures\u2014tests that fail intermittently but pass on retry\u2014and report them to Sentry without breaking the CI build. By default, only flaky tests are reported; consistently failing tests are not sent, and consistently passing tests generate no errors.\n\nThe plugin also sends performance data to Sentry by default, tracking fixture setup times and test execution times as separate transactions within a trace. This lets you identify slow fixtures and large tests. Configuration is entirely environment-variable driven (PYTEST_SENTRY_DSN, PYTEST_SENTRY_TRACES_SAMPLE_RATE, etc.), with optional per-test overrides via pytest markers. The plugin maintains strict isolation between its own Sentry client and any Sentry SDK usage in the code being tested, to avoid quota waste from expected errors in the application.","worth_installing":"Yes, if you use pytest-rerunfailures and want visibility into flaky test patterns without cluttering your CI status. The low install friction and permissive license make adoption straightforward. However, note that the package is aging (409 days since last release); verify compatibility with your current pytest and sentry-sdk versions before relying on it in production CI."},"id":"pytest-sentry","links":{"html":"https://skillfed.io/packages/pytest-sentry","md":"https://skillfed.io/packages/pytest-sentry.md","pypi":"https://pypi.org/project/pytest-sentry/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-07-01","license_spdx":null,"license_treatment":"permissive","name":"pytest-sentry","python_support":"unspecified","summary":"A pytest plugin to send testrun information to Sentry.io"},"popularity":{"monthly_downloads":80423,"position":14294,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5.1"}
