Skip to content

Add integration tests#27

Merged
fraenky8 merged 52 commits into
masterfrom
add-integration-tests
Apr 14, 2026
Merged

Add integration tests#27
fraenky8 merged 52 commits into
masterfrom
add-integration-tests

Conversation

@fraenky8
Copy link
Copy Markdown
Owner

This PR aims to add integration tests for all supported database types.

@fraenky8 fraenky8 self-assigned this Dec 14, 2019
@fraenky8 fraenky8 force-pushed the add-integration-tests branch 2 times, most recently from 8ed7b24 to dc0b516 Compare February 25, 2020 14:25
@fraenky8 fraenky8 force-pushed the add-integration-tests branch 2 times, most recently from cced0de to dde5b73 Compare April 19, 2020 10:41
@fraenky8 fraenky8 force-pushed the add-integration-tests branch 8 times, most recently from 2d68f74 to ca5a6fe Compare May 25, 2020 02:26
@fraenky8 fraenky8 force-pushed the add-integration-tests branch from b8405e4 to 0ad27dd Compare September 27, 2021 14:05
@fraenky8 fraenky8 force-pushed the add-integration-tests branch from f7fa270 to c6fe266 Compare June 18, 2023 02:35
@fraenky8 fraenky8 force-pushed the add-integration-tests branch from c6fe266 to 2ae8b7a Compare October 13, 2024 04:21
- Used MySQL 8 as first candidate
- Added build flags
- Added test data for temporal data types
- Added and vendor'ed new dependencies
removed also the // +build !integration flags of the unit tests.
- support multiple SQL data files
- the output directory is a temporary one
- make the tests running in parallel

add integration test for postgres:10/int2
add integration test for postgres:10/int4
add integration test for postgres:10/int8
add integration test for postgres:10/smallint
add integration test for postgres:10/integer
add integration test for postgres:10/bigint
add integration test for postgres:10/smallserial
add integration test for postgres:10/serial
add integration test for postgres:10/bigserial
add integration test for postgres:10/serial2
add integration test for postgres:10/serial4
add integration test for postgres:10/serial8
add integration test for postgres:10/varchar
add integration test for postgres:10/character varying
add integration test for postgres:10/character
add integration test for postgres:10/char
add integration test for postgres:10/float
add integration test for postgres:10/float4
add integration test for postgres:10/float8
add integration test for postgres:10/numeric
add integration test for postgres:10/decimal
add integration test for postgres:10/real
add integration test for postgres:10/double precision
add integration test for postgres:10/time
add integration test for postgres:10/timestamp
add integration test for postgres:10/date
add integration test for postgres:10/time without time zone
add integration test for postgres:10/timestamp without time zone
add integration test for postgres:10/time with time zone
add integration test for postgres:10/timestamp with time zone
add integration test for postgres:10/timestamptz
add integration test for mysql:8/integer
add integration test for mysql:8/bigint
add integration test for mysql:8/mediumint
add integration test for mysql:8/smallint
add integration test for mysql:8/tinyint
add integration test for mysql:8/tinytext
add integration test for mysql:8/text
add integration test for mysql:8/mediumtext
add integration test for mysql:8/longtext
add integration test for mysql:8/tinyblob
add integration test for mysql:8/blob
add integration test for mysql:8/mediumblob
add integration test for mysql:8/longblob
add integration test for mysql:8/char
add integration test for mysql:8/varchar
add integration test for mysql:8/binary
add integration test for mysql:8/varbinary
add integration test for mysql:8/numeric
add integration test for mysql:8/double
add integration test for mysql:8/float
add integration test for mysql:8/real
add integration test for mysql:8/double precision
fraenky8 added 10 commits March 23, 2026 19:52
Refactored the test and helpers and added resetting of data etc. Now
test containers are reused by different tests and reset in between.

Also changes the test directory layout structure to have an intermediate
directory per test, so that each test can own its directory.
With help of 🤖
Such that testdata is now shared and each test can declare expected.
And renamed a local settings variable in all other tests.
Regenerated the files in the integration tests.
To be able to run the integration tests with -race flag. Seems to be
recommended to not mix-and-match coverage with it.
@fraenky8 fraenky8 force-pushed the add-integration-tests branch from eadde83 to 3359863 Compare March 25, 2026 03:37
@fraenky8 fraenky8 force-pushed the add-integration-tests branch from 1dcb3c0 to 3c8003a Compare April 14, 2026 03:31
- Use in-memory tmpfs
- Loosen the logging/crash resistance via flags
- Close the DB connections after each test
@fraenky8 fraenky8 force-pushed the add-integration-tests branch from 11adb06 to 1d8266e Compare April 14, 2026 04:21
@fraenky8 fraenky8 requested a review from Copilot April 14, 2026 04:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 298 out of 3278 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/integration_tests/integration_test.go
Comment thread internal/integration_tests/integration_test.go
@fraenky8 fraenky8 merged commit bc5fabe into master Apr 14, 2026
6 checks passed
@fraenky8 fraenky8 deleted the add-integration-tests branch April 14, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants