Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for net/http and fasthttp integrations #167

Merged
merged 3 commits into from
Feb 24, 2020

Conversation

rhcarvalho
Copy link
Contributor

Tests should allow us to make changes to sentry-go with some confidence that integrations still work.

Targeting net/http and fasthttp because other integrations (echo, gin, iris, martini, negroni) are similar to net/http, so we cover most of the surface area.

The tests cover 3 scenarios:

  • Capturing panics
  • Capturing message with request body
  • Capturing message without request body

The tests in sentryhttp and sentryfasthttp are pretty similar, however need to account for differences in net/http and fasthttp.

Updates #97.

Without `./...` only the top-level package was built and tested.
bruno-garcia
bruno-garcia previously approved these changes Feb 24, 2020
Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how much my review is worth here but LGTM!

@rhcarvalho rhcarvalho merged commit 7b7d396 into getsentry:master Feb 24, 2020
@rhcarvalho rhcarvalho deleted the integration-tests branch February 24, 2020 20:51
@kamilogorek
Copy link
Contributor

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants