Company
Date Published
Author
Erin Dame
Word count
2086
Language
English
Hacker News points
None

Summary

Raven TestKit is an open-source tool developed by Wix Engineering to support test-driven development (TDD) with Sentry's Raven SDK. The plugin enables error report interception and inspection of data being sent to Sentry, allowing developers to simulate bugs and test report data in a controlled environment. This solution helps distinguish between real errors in code, developer testing errors, and user code errors, replacing the need to analyze noise in Sentry logs. By overriding the transport layer using Raven's API, Raven TestKit can work natively with applications, providing a simple and easy-to-use interface for inspecting reports and verifying properties being sent. The tool has been adopted by Wix Engineering and is now available as an official tip from Sentry, offering benefits such as working offline with Raven without hacking into Sentry, running integration tests without exploding Sentry with false reports, and connecting Raven-testkit to run systems offline while working with Raven.