Skip to content

Expose bash scripts for local testing #1565

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

Open
steve-chavez opened this issue Apr 21, 2025 · 0 comments
Open

Expose bash scripts for local testing #1565

steve-chavez opened this issue Apr 21, 2025 · 0 comments

Comments

@steve-chavez
Copy link
Member

Problem

nix flake check runs all the tests we have, this can take a long time and the generated output files are big as well. This is inefficient, considering sometimes just one migration can be modified.

For these cases just running pg_regress over nix/tests would be enough. This should be much faster.

CI will still of course ensure nix flake check is run, but locally we can benefit from more speed.

Solution

Expose some tests as regular bash scripts, so developers can do:

$ nix develop

Then run:

$ <someprefix>-run-tests --kind migrations
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

No branches or pull requests

1 participant