Skip to content

New integration tests for @sentry/node #4260

Closed
@AbhiPrasad

Description

@AbhiPrasad

Let's figure out how to best test @sentry/node.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions