Skip to content

v0.17.0: test: add table cleanup and unique naming to integration tests

Choose a tag to compare

@lesichkovm lesichkovm released this 20 Mar 22:14
· 22 commits to main since this release
- Added dropTestTable() helper function to clean up test tables after tests
- Changed test table names to be dialect-specific (test_users_mysql, test_users_postgres, test_users_sqlite)
- Added defer statements to ensure tables are dropped after each test
- Changed createTestTable to use CreateIfNotExists() instead of Create()
- Prevents table name conflicts when running multiple integration tests