Running the tests
docker compose up -d --waitexport DATABASE_URL=postgres://newt:newt@localhost:55432/newtcargo test --workspace- Tests in
newt-server,newt-demoandnewt-loadtestuse Postgres: each#[sqlx::test]creates a throwaway database fromDATABASE_URLand appliesmigrations/. - The
newt-coretests need no database. - No test calls a real model provider.
CI also runs:
cargo fmt --checkcargo clippy --workspace --all-targets -- -D warningscargo deny checkcargo macheteSee Contributing for setup and code rules.