postgresml / pgcat

PostgreSQL pooler with sharding, load balancing and failover support.
MIT License
3.12k stars 190 forks source link

Make iterating on integration tests easier #789

Closed drdrsh closed 2 months ago

drdrsh commented 2 months ago

Writing and iterating on integration tests are cumbersome, having to wait 10 minutes for the test-suite to run just to see if your test works or not is unacceptable.

In this PR, I added a detailed workflow for writing tests that should shorten the feedback cycle of modifying tests to be as low as a few seconds.

It will involve opening a shell into a long-lived container that has all the setup and dependencies necessary and then running your desired tests directly there. I added a convenience script that bootstraps the environment and then opens an interactive shell into the container and you can then run tests immediately in an environment that is more or less identical to what we have running in CircleCI

output