diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 89582472..f0b5b056 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -84,7 +84,7 @@ jobs: fi git checkout FETCH_HEAD - run: apt-get update -qq && apt-get install -y -qq libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf pkg-config perl - - run: cargo test --manifest-path src-tauri/Cargo.toml + - run: cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1 frontend-typecheck: runs-on: ubuntu-latest diff --git a/AGENTS.md b/AGENTS.md index cdeb7ae4..e1954b5e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,9 +9,9 @@ | Frontend production build | `npm run build` | | Rust fmt check | `cargo fmt --manifest-path src-tauri/Cargo.toml --check` | | Rust clippy | `cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings` | -| Rust tests | `cargo test --manifest-path src-tauri/Cargo.toml` | -| Rust single test module | `cargo test --manifest-path src-tauri/Cargo.toml pii::detector` | -| Rust single test | `cargo test --manifest-path src-tauri/Cargo.toml test_detect_ipv4` | +| Rust tests | `cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1` | +| Rust single test module | `cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1 pii::detector` | +| Rust single test | `cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1 test_detect_ipv4` | | Frontend test (single run) | `npm run test:run` | | Frontend test (watch) | `npm run test` | | Frontend coverage | `npm run test:coverage` |