Skip to content

test: integration tests for sqlite#195

Merged
MattiasMTS merged 3 commits intokndndrj:masterfrom
MattiasMTS:ms/integration-test-sqlite
Mar 12, 2025
Merged

test: integration tests for sqlite#195
MattiasMTS merged 3 commits intokndndrj:masterfrom
MattiasMTS:ms/integration-test-sqlite

Conversation

@MattiasMTS
Copy link
Copy Markdown
Collaborator

@MattiasMTS MattiasMTS commented Mar 9, 2025

Some changes to the driver to mimic how we do it in other places.

The tests in this case might be a bit bloated/unorthodox, given sqlite is lightweight and containers aren't 'truly' needed.

However, in order to easier reproduce dependencies/seed etc it is useful to have an isolated container, where tools related to specific sqlite-driver can be installed (not up to the developer to have e.g. sqlite3 CLI installed). For example, adding the seed in this case is done via the sqlite3 CLI, which the CI/CD or developers might have. But, what they do have is docker/virtualisation installed and that is IMO the only tool a developer should need to run the tests. WDYT?

EDIT: I know there is a preinstalled sqlite image (https://hub.docker.com/r/keinos/sqlite3) but I chose simplicity/control by just installing it ourselves instead.

@MattiasMTS MattiasMTS force-pushed the ms/integration-test-sqlite branch from 14586e1 to 00fdc3d Compare March 9, 2025 16:06
Copy link
Copy Markdown
Contributor

@phdah phdah left a comment

Choose a reason for hiding this comment

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

Looks awesome! I will take this generic ts to the duckdb test as well. Left some questions and suggestions that would be nice to be evaluated.

@MattiasMTS MattiasMTS force-pushed the ms/integration-test-sqlite branch 2 times, most recently from a540d14 to 65e9a72 Compare March 12, 2025 14:24
@MattiasMTS MattiasMTS force-pushed the ms/integration-test-sqlite branch from 65e9a72 to 464e1a0 Compare March 12, 2025 14:32
@MattiasMTS MattiasMTS force-pushed the ms/integration-test-sqlite branch from 464e1a0 to 771e150 Compare March 12, 2025 15:06
@MattiasMTS MattiasMTS merged commit b28b494 into kndndrj:master Mar 12, 2025
16 checks passed
@MattiasMTS MattiasMTS deleted the ms/integration-test-sqlite branch March 12, 2025 16:07
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