Idea
There is a gap in our tests, that we do not do a proper E2E test of our consumers using new releases of our SDK. E2E tests should catch those errors that we're unlikely to notice during normal development.
Requirements:
Examples of what an E2E test of an individual package should do:
- Upload current version of SDK to a local fake registry (this is to test tarball contents) (we could use verdaccio as registry)
- Download SDK package from the registry
- Build an example app using the downloaded SDK (this is to test typing and eventual build-time stuff we do, ie. webpack plugin)
- Run the example app
- Intercept any outgoing requests to sentry from that example app
- Do some stuff in the example app (cause errors, trigger transactions)
- Check payloads of intercepted requests and their content
Consider:
- This will have maintenance costs, changes in SDKs need to be reflected in our example apps
Prior Work:
Things to discuss and figure out
Tasks
Next up
Verifying SDK behavior with E2E tests. Tracked in #5855
Idea
There is a gap in our tests, that we do not do a proper E2E test of our consumers using new releases of our SDK. E2E tests should catch those errors that we're unlikely to notice during normal development.
Requirements:
Examples of what an E2E test of an individual package should do:
Consider:
Prior Work:
Things to discuss and figure out
Tasks
@sentry/react) that test the typical build-pipeline steps (test(e2e): Test building a create-react-app app with Sentry SDK #5848)create-react-app) check typings (runtsc)Next up
Verifying SDK behavior with E2E tests. Tracked in #5855