Conversation
the sentrytest package is a wrapper for writing simpler integration tests. The package simulates sentry.Init and runs in a synctest bubble to eliminate timing-related flakiness.
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. Breaking Changes 🛠
Internal Changes 🔧Deps
Other
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1b8215e. Configure here.
| // and all unexported fields. | ||
| var DefaultEventCmpOpts = cmp.Options{ | ||
| cmpopts.IgnoreFields(sentry.Event{}, | ||
| "Contexts", |
There was a problem hiding this comment.
What if the test needs to check for a particular value in a Context?
There was a problem hiding this comment.
hmm I guess you can override this via the opts passed in DiffEvents right?
There was a problem hiding this comment.
You have two options, override via DiffEvents, or since fixture.Events() exposes all the received events anyway, you can assert on event.Contexts manually.

Description
The sentrytest package is a wrapper for writing simpler integration tests. The package simulates sentry.Init and runs in a synctest bubble to eliminate timing-related flakiness.
Issues
Changelog Entry Instructions
To add a custom changelog entry, uncomment the section above. Supports:
For more details: custom changelog entries
Reminders
feat:,fix:,ref:,meta:)