test(e2e): drive the cli against real databases via docker compose - #8
Merged
Conversation
Replace the license section with the org's standard CC0 waiver wording, attribution, badge, and kopimi link. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add an end-to-end suite (scripts/e2e.sh, just test-e2e, and a CI e2e job) that builds the q binary and runs it against Postgres, MySQL, MongoDB, and Redis started via docker compose (seeded from testdata/e2e), plus SQLite from a temp file. Each engine asserts a read query streams the expected output and a mutation is refused with exit 5 — exercising the real CLI, not just the adapter API. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a true end-to-end test of the compiled
qbinary (the existingintegrationjob exercises the adapter Go API, not the CLI).scripts/e2e.sh(run byjust test-e2eand a new CIe2ejob) buildsq, thenstarts Postgres, MySQL, MongoDB, and Redis via
docker compose(seeded fromtestdata/e2e/), plus SQLite from a temp file. For each engine it pipes aconnection string on stdin and asserts:
Compose
up --waitgates on healthchecks; a cleanup trap always tears the stackdown. Verified locally — all five engines pass.
Also: replace the README license section with the org's standard CC0 block.
🤖 Generated with Claude Code