Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintain: exit tests if the postgres_connection string isn't specified #3605

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

pdevine
Copy link
Contributor

@pdevine pdevine commented Nov 9, 2022

Summary

Don't run unit tests w/ make test and make test-all if the POSTGRES_CONNECTION env variable is not set.

If the string is not set, go test ./... gets run, and it will silently skip a number of unit tests which rely on the postgres db. These tests will be run in our CI system, but will leave you scratching your head why they're not running locally.

@pdevine pdevine merged commit c956bc8 into main Nov 9, 2022
@pdevine pdevine deleted the makefile-psql branch November 9, 2022 21:59
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