We have two test suites: rust-based client+server integration tests and a playwright based UI test suite. By default, every test will start up its own server instance.
- You can use
SERVER_URLto point the tests to a running server instead of starting a new one, though keep in mind many tests assume a clean server state.
cargo test --workspace --all-featuresTo run the tests, you must build the NodeJS client library so the test can import it.
pnpm --dir crates/observation-tools-client install
pnpm --dir crates/observation-tools-client build:debug
pnpm --dir tests install
pnpm --dir tests run testThe test suite uses Playwright. You can use all of its debugging tools, e.g. open the inspector:
cd tests
pnpm playwright test --uicargo +nightly fmt
pnpm dlx prettier --write .