A pytest plugin to send test run information to Sentry.io. Currently at version 0.5.1, with irregular releases. Compatible with Sentry SDK >=3.0 (since 0.4.0).
pip install pytest-sentryVerified import paths — ran on the pinned version, not inferred.
Basic setup: set SENTRY_DSN environment variable and the plugin will automatically capture test failures and performance data.
Upgrade sentry-sdk to >=3.0.0: pip install -U sentry-sdk
Use pytest-sentry 0.1.16 with sentry-sdk <2.0, or upgrade sentry-sdk.
Replace pytest_sentry.hub with sentry_sdk: 'import sentry_sdk; sentry_sdk.init(...)'
Use 'import sentry_sdk; sentry_sdk.init()' instead of 'pytest_sentry.hub.init()'.
Set environment variable SENTRY_DSN or pass it via pytest ini option: '--sentry-dsn=...'
Upgrade sentry-sdk to >=2.0.0 (or >=3.0.0 for pytest-sentry >=0.4.0).