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

Allow running integration tests with coverage locally #151

Merged

Conversation

drdrsh
Copy link
Collaborator

@drdrsh drdrsh commented Aug 30, 2022

Allow running integration tests with coverage locally.

cd tests/docker
docker compose up --exit-code-from main

@drdrsh drdrsh marked this pull request as ready for review August 30, 2022 17:36
Copy link
Contributor

@levkk levkk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of local Docker development overall. It doesn't work on everyone's system & it's also very slow. I think we should have two tiers of tests at least:

  1. Quick and easy tests to make sure the pooler is working ok that run locally with no Docker.
  2. End-to-end tests that catch any complex errors - we can run that in CircleCI.

@levkk levkk merged commit 65b69b4 into postgresml:main Aug 30, 2022
@drdrsh
Copy link
Collaborator Author

drdrsh commented Aug 30, 2022

Agree that it is slow but the feedback loop for CI is much slower, I want to have the option to be able to run the tests I run on CI locally or at least the setup same environment so I can debug CI failures when they happen.

jmeagher pushed a commit to jmeagher/pgcat that referenced this pull request Feb 17, 2023
Exit with failure codes if configs are bad (postgresml#146)
Move autoreloader to own tokio task (postgresml#148)
Ruby integration tests (postgresml#147)
Allow running integration tests with coverage locally (postgresml#151)
Log Address information in connection create/drop (postgresml#154)
Better handling for checkout errors during extended protocol messages (postgresml#155)
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