Docs: Run local tests via cargo-nextest

Mention this specifically in contributing.md since CI also uses this test runner. My attempt to use `cargo test` failed due to PG connection pooling. In any case, unless there are reasons not to, we should keep close to mirroring what we do in CI.
This commit is contained in:
Jason Robinson
2025-08-07 13:33:59 +03:00
parent b698bda8f8
commit 658ce57ed5

View File

@@ -89,7 +89,9 @@ 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.
If you haven't already, install [Cargo-Nextest](https://nexte.st/docs/installation/pre-built-binaries/).
- Run the tests to the backend by running `cargo-nextest nextest run --workspace`. This requires a connection to a PostgreSQL database, set via the `DATABASE_URL` environment variable.
- Run the tests to the frontend by running `npm run test` in the `frontend` directory.
## 8. Submit a pull request