You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,6 +268,26 @@ You can then view the docs in your browser:
268
268
$ open docs/_build/html/index.html
269
269
```
270
270
271
+
## Testing with Sentry
272
+
273
+
In some cases, users may want to test that certain actions in their application cause a report to be sent to Sentry. Sentry itself does this by using [Bypass](https://github.com/PSPDFKit-labs/bypass). It is important to note that when modifying the environment configuration the test case should not be run asynchronously. Not returning the environment configuration to its original state could also affect other tests depending on how the Sentry configuration interacts with them.
274
+
275
+
Example:
276
+
277
+
```elixir
278
+
test "add/2 does not raise but sends an event to Sentry when given bad input"do
0 commit comments