Skip to content

Alpine based docker container to run pg_prove/pgTAP tests in

License

Notifications You must be signed in to change notification settings

BronzeDeer/pg_prove-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pg_prove-docker

Alpine based super lightweight docker container to run pg_prove tests against your postgres database.

The container will install pgTAP (https://pgtap.org/) in the database and remove it again after the tests. As long as your tests run inside transactions no trace of the tests should remain in the database.

Usage

Set (as needed)

  • $POSTGRES_HOST (or mount the pgsql socket to /tmp/.s.PSGSQL.5432)
  • $POSTGRES_SUPERUSER (needed to install/remove pgTAP)
  • $POSTGRES_SUPERUSER_PASSWORD
  • $POSTGRES_TESTUSER (USER that will execute the tests)
  • $POSTGRES_TESTUSER_PASSWORD
  • $POSTGRES_DBNAME

Mount your tests to /tests inside the container

About

Alpine based docker container to run pg_prove/pgTAP tests in

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published