This package was developed by Silicon Ally while working on a project for Adventure Scientists. Many thanks to Adventure Scientists for supporting our open source mission!
NOTE: this package is pre-v1.0.0 release, meaning that the API is liable to change as we add + refactor functionality. Since it's only for use in testing, that's likely fine for small projects, but contact us before integrating this into any larger/more serious projects.
testpgx
is a testing library for running tests against a real Postgres
database. It provides a test with a *pgx.Conn
connection to a live database
running in a Docker container, though this can be converted into a more generic
*sql.DB
.
See the example/
directory for an example of how to integrate
testpgx
into a test suite.
Contribution guidelines can be found on our website.