Skip to content

Add tests for SchemaAfterMigration method #926

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

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

andrew-farries
Copy link
Collaborator

Assert that the SchemaAfterMigration method correctly returns the schema after each migration in a series of migrations.

This improves the state package's coverage of its own functionality, rather than relying on tests in the roll package to provide (in this case inadequate) testing of the package's functionality.

Assert that the `SchemaAfterMigration` method correctly returns the schema
after each migration in a series of migrations.
@github-actions github-actions bot temporarily deployed to Docs Preview June 20, 2025 10:26 Inactive
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/xataio/pgroll/pkg/state 74.49% (+3.70%) 👍

Coverage by file

Changed unit test files

  • github.com/xataio/pgroll/pkg/state/state_test.go

@andrew-farries andrew-farries marked this pull request as ready for review June 20, 2025 12:01
@andrew-farries andrew-farries requested a review from kvch June 20, 2025 12:01
@andrew-farries andrew-farries merged commit ebd41aa into main Jun 23, 2025
30 checks passed
@andrew-farries andrew-farries deleted the test-schema-after-migration branch June 23, 2025 10:25
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.

2 participants