From 85c66a8fa8ded6dfa71739d056efa323ef9ecbaf Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Fri, 4 Jul 2025 14:32:24 -0400 Subject: [PATCH] Document steps to prepare test database --- docs/development/contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development/contributing.md b/docs/development/contributing.md index 83edcfba2..48002d713 100644 --- a/docs/development/contributing.md +++ b/docs/development/contributing.md @@ -89,7 +89,7 @@ While you're developing and before submitting a patch, you'll want to test your ### Run the tests -- Run the tests to the backend by running `cargo test --workspace`. This requires a connection to a PostgreSQL database, set via the `DATABASE_URL` environment variable. +- Run the tests to the backend by running `cargo test --workspace`. This requires a connection to a PostgreSQL database, set via the `DATABASE_URL` environment variable. This also requires introspection data to be initialized by running `cargo sqlx migrate run` and `cargo sqlx prepare` from the `crates/storage-pg/` directory, or by having compiled with `SQLX_OFFLINE=1` at least once to use offline introspection data. - Run the tests to the frontend by running `npm run test` in the `frontend` directory. ## 8. Submit a pull request