This guide lists the validation commands you should know when working on RustShare.
Run the library unit tests. Does not require a running database when SQLX_OFFLINE=true is set.
cd backend
SQLX_OFFLINE=true cargo test --all-features --libIncludes apps/desktop/, crates/, and shared client-side libraries.
SQLX_OFFLINE=true cargo check --workspace
SQLX_OFFLINE=true cargo test --workspace --libIntegration tests and contract tests require running services (PostgreSQL + RustFS/S3-compatible storage).
cd backend
cargo test --all-features
cargo test --test contracts -- --ignoredSee backend/TESTING.md for setup details.
cd frontend
npm install
npm run test # vitest unit tests
npm run test:e2e # Playwright E2E tests; requires a running backendAfter docker compose up -d, run the launch smoke test:
./scripts/final-launch-smoke.shRequires the full local stack to be running.
| Command | Needs running services |
|---|---|
cargo test --all-features --lib |
No (with SQLX_OFFLINE=true) |
cargo test --all-features |
Yes (PostgreSQL + RustFS) |
cargo test --test contracts -- --ignored |
Yes (PostgreSQL + RustFS) |
npm run test |
No |
npm run test:e2e |
Yes (running backend) |
./scripts/final-launch-smoke.sh |
Yes (full Docker Compose stack) |