-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
test(e2e): Add E2E Test recipe framework #5836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed in person with Luca.
Main point that came up was if we restrict the test scenarios to be more defined
"type": "string", | ||
"description": "Name displayed in test output" | ||
}, | ||
"buildCommand": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should also add a timeout for build commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 114ae0d
Ref: #5506
Adds the functionality to the E2E tests package to configure test recipes alongside very simple examples. E2E tests can be configured by adding standalone test applications to the
test-applications
folder containing atest-recipe.json
file.Via the
test-recipe.json
we can configure abuildCommand
(that is run once, and is supposed to build the test application) and any number of tests that each have atestCommand
. This command is supposed to actually conduct the test and verify the behavior of apps or SDKs.These commands are left very generic intentionally so that we stay flexible on how we can conduct tests. (e.g. some may want to run Playwright, some only run a node script, some may start a fake server, others might want to send events to prod sentry, etc.)
The important part is, that in the context of these commands, there is a test registry available at
http://localhost:4873
that hosts all of the current Sentry packages. This allows us for example to simply doyarn install --registry http://localhost:4873
in thebuildCommand
in order to install our packages as they would look like if we did a release on the current branch.Visit this PR to see what failing E2E tests look like.