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: CHANGELOG.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,30 @@
45
45
- Move envelope item processing/trimming logic to the Item class [#1824](https://github.com/getsentry/sentry-ruby/pull/1824)
46
46
- Replace sentry-ruby-core with sentry-ruby as integration dependency [#1825](https://github.com/getsentry/sentry-ruby/pull/1825)
47
47
48
+
### Test Helpers
49
+
50
+
The SDK now provides a set of [test helpers](https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/lib/sentry/test_helper.rb) to help users setup and teardown Sentry related tests.
51
+
52
+
To get started:
53
+
54
+
```rb
55
+
require "sentry/test_helper"
56
+
57
+
# in minitest
58
+
class MyTest < Minitest::Test
59
+
include Sentry::TestHelper
60
+
# ...
61
+
end
62
+
63
+
# in RSpec
64
+
RSpec.configure do |config|
65
+
config.include Sentry::TestHelper
66
+
# ...
67
+
end
68
+
```
69
+
70
+
It's still an early attempt so please give us feedback in [#1680](https://github.com/getsentry/sentry-ruby/issues/1680).
0 commit comments