diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ba601f5a65..63307a0e78 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -121,7 +121,7 @@ jobs: restore-keys: ${{ runner.os }}-cargo- - name: Run tests - run: cargo nextest run + run: cargo xtask test # test-rust-wasm: # runs-on: ubuntu-latest diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 4ee208e621..319f0810e7 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -28,7 +28,7 @@ fn print_help() { eprintln!( "Tasks: -build builds all languages +build builds all languages build-wasm builds the wasm components in wasm32-unknown-unknown build-bundled builds sqlite3 and updates the bundeled code for ffi test runs the entire libsql test suite using nextest @@ -75,9 +75,14 @@ fn build_wasm(_arg: &str) -> Result<()> { fn run_tests(arg: &str) -> Result<()> { println!("installing nextest"); run_cargo(&["install", "cargo-nextest"])?; + println!("running nextest run"); run_cargo(&["nextest", "run", arg])?; + // Nextest doesn't have the `--doc` flag, so we are forced to use `cargo test`. + println!("running cargo test --doc"); + run_cargo(&["test", "--doc"])?; + Ok(()) }