Skip to content
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

[Testing] Improve schema handling for integration tests on Spanner Emulator. #61

Open
dtest opened this issue Feb 27, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@dtest
Copy link
Collaborator

dtest commented Feb 27, 2023

Currently the schema/players.sql and schema/trading.sql files are copied into the backend service's folder to run integration tests.

It would be nice to use wrench as part of integration tests to validate schema migrations are working.

There are some issues with this though:

  • applying migrations against the emulator will eventually take a while. This can be solved by loading the 'current' schema into a file. Question would be where to get that 'current' schema?
  • The emulator can lag on feature parity with Cloud Spanner. This means that integration tests can fail if the emulator doesn't support a particular SQL feature we're taking advantage of in this sample gaming app.

So will need to figure out how to handle those two points when improving integration tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant