diff --git a/build.ps1 b/build.ps1 index 10802a7c7..a3e5a058b 100644 --- a/build.ps1 +++ b/build.ps1 @@ -4,7 +4,7 @@ $bin_path = Join-Path $PSScriptRoot 'scripts\build-windows\_output\kclvm-windows $env:Path += ";$bin_path" # rust unit test Set-Location .\kclvm -cargo test -p kclvm-* +cargo test --workspace -r -- --nocapture Set-Location $PSScriptRoot # rust runtime test Set-Location .\kclvm\tests\test_units diff --git a/kclvm/makefile b/kclvm/makefile index 9c0cb4e7e..713a38b41 100644 --- a/kclvm/makefile +++ b/kclvm/makefile @@ -55,7 +55,7 @@ fix: # Unit tests without code cov test: - cargo test -p kclvm-* -r -- --nocapture + cargo test --workspace -r -- --nocapture # Unit tests with code cov (Requires rust 1.60+) codecov: