-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Separate emulator ports for component and E2E tests #11002
Comments
E2E test should in fact not rely on automatic setup of emulator.
If the E2E tests in CI require datastore emulator, then we should set up the emulator beforehand in the CI script. |
@wkurniawan07 My thoughts:
Yup, then we empty-override the local datastore helper setup for e2e.
I looked at it. setup-gcloud can be the way to do it. But I can't find a way to interpolate variables from
I am thinking of defining
The problem could be from So the solution should be adding its setup to test suites (i.e. extends |
No issue with this. Tests in CI work by pulling values already hard-coded in the version control.
Might be, but you might also want to check first if using the more direct method of just running
This is right if L&P tests are white-box, however they are black-box tests and thus the same applies. |
Work is done |
objectify-v6-migration
branchCurrently both
BaseE2ETestCase
andBaseComponentTestCase
extends fromBaseTestCaseWithObjectifyAccess
and therefore share the sameEMULATOR_PORT
.It would be better to use separate ports for two kinds of tests that require local datastore emulator setup. To avoid potential interference in persisting storage.
The text was updated successfully, but these errors were encountered: