Skip to content

migrate to sqlx::test macro in integration tests #1091

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 7 commits into from
Apr 14, 2025

Conversation

wojcik91
Copy link
Contributor

Use sqlx::test macro to handle test DB setup & cleanup. This removes the need to manually drop test DBs in local dev environment.
Also move all integration tests into a single crate for increased performance (avoids compiling and linking a separate crate for each test file) & easier code sharing.

@wojcik91 wojcik91 self-assigned this Apr 11, 2025
@wojcik91 wojcik91 requested a review from j-chmielewski April 11, 2025 10:30
@wojcik91 wojcik91 marked this pull request as ready for review April 11, 2025 11:31
@wojcik91 wojcik91 merged commit c4de5b1 into dev Apr 14, 2025
3 of 4 checks passed
@wojcik91 wojcik91 deleted the migrate_to_sqlx_test_macro branch April 14, 2025 07:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant