Closed
Description
Let's figure out how to best test @sentry/node
.
- Run an express server and check stuff?
- Something similar to nextjs server tests https://github.com/getsentry/sentry-javascript/blob/master/packages/nextjs/test/integration/test/server.js?
Our existing setup (running node scripts and asserting on the process): https://github.com/getsentry/sentry-javascript/tree/master/packages/node/test/manual
@onurtemizkan fyi if you have any feedback.
List of things that need to be tested:
Public API tests
-
addBreadcrumb
-
captureException
-
captureMessage
-
configureScope
-
setContext
-
setExtra
-
setExtras
-
setTag
-
setTags
-
setUser
-
withScope
-
showReportDialog
-
flush
Performance
-
startTransaction
- Node Database Auto-instrumentation
- Mongo
- MySQL
- Postgres
Sessions
Express
- Errors
- Performance
Koa
- Errors
- Performance