diff --git a/dev/docs/db-container.md b/dev/docs/db-container.md index b4bb73bc77..ae6c394a47 100644 --- a/dev/docs/db-container.md +++ b/dev/docs/db-container.md @@ -6,7 +6,7 @@ - git - Node.js - pnpm - - Rust toolchain + - Rust toolchain and [cargo-nextest](https://nexte.st/) - Python 3 - Perl - FFmpeg diff --git a/dev/docs/local-installation.md b/dev/docs/local-installation.md index cc32e94198..5d8a094f73 100644 --- a/dev/docs/local-installation.md +++ b/dev/docs/local-installation.md @@ -40,6 +40,14 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh cargo --version ``` +### Cargo nextest + +Instructions can be found at [this page](https://nexte.st/book/pre-built-binaries). + +```sh +curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin +``` + ### PostgreSQL and PGroonga Firefish requires PostgreSQL v12 or later. We recommend that you install v12.x for the same reason as Node.js. diff --git a/package.json b/package.json index a2f1acf360..fa321af3cb 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "mocha": "pnpm --filter backend run mocha", "test": "pnpm run test:ts && pnpm run test:rs", "test:ts": "pnpm run mocha", - "test:rs": "cargo test", + "test:rs": "cargo test --doc && cargo nextest run", "format": "pnpm run format:ts; pnpm run format:rs", "format:ts": "pnpm -r --parallel run format", "format:rs": "cargo fmt --all --",