-
Notifications
You must be signed in to change notification settings - Fork 321
feat: add db test command using pgtap #326
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
Conversation
Pull Request Test Coverage Report for Build 3172017203
💛 - Coveralls |
|
this is awesome!! Are tests within nested directories also supported? |
|
I think instead of manually traversing the dirs, we can instead use one file as an entrypoint and use the Or use the |
+1 for the recurse flag. The \include directive would require the user to manually include hundreds of files eventually. |
|
You can also use wildcards with the include directive iirc, so both approaches should be fine. (Somehow I can't find where the reference is for the directives, so we should probably put this up somewhere on the CLI docs) |
|
Thanks for the suggestions! Added |
|
🎉 This PR is included in version 1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
@sweatybridge why do we only search for EDIT: Created issue #571 |
What kind of change does this PR introduce?
feature:
supabase db testWhat is the current behavior?
no cli native way to run tests
What is the new behavior?
pg_proveonsupabase_db_clicontainer oncesupabase/testsintosupabase_db_clicontainerpg_provevia docker exec and prints out resultsAdditional context
Example
order_test.pgOutput
$ supabase db test supabase/tests/order_test.pg .. ok supabase/tests/pet_test.pg .... ok All tests successful. Files=2, Tests=2, 1 wallclock secs ( 0.01 usr 0.00 sys + 0.04 cusr 0.02 csys = 0.07 CPU) Result: PASS