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

Strengthen SQL transformation tests #331

Merged
merged 5 commits into from
Mar 28, 2024
Merged

Conversation

andrew-farries
Copy link
Collaborator

Improve the existing tests around SQL transformation by adding a MockSQLTransformer type and using it in the existing SQL transformation tests.

Also add several new testcases for transformation of raw SQL operations to ensure that when transformation fails the operation fails.

Allow for testcases to specify an expected error after a migration is
rolled back.
Allow for testcases to specify an expected error after a migration is
completed.
pkg/testutils/sql_transformer.go Outdated Show resolved Hide resolved
Co-authored-by: Alexis Rico <me@sferadev.com>
@andrew-farries andrew-farries merged commit 130f451 into main Mar 28, 2024
44 checks passed
@andrew-farries andrew-farries deleted the mock-sql-transformer branch March 28, 2024 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants