Skip to content

Commit 2d1e364

Browse files
committed
fix(ci): pass Testing Platform disable flags to dotnet test too
dotnet test reads csproj settings regardless of --no-build, so it still used Testing Platform mode. Pass the disable flags to test command as well to force VSTest adapter mode.
1 parent 39e696c commit 2d1e364

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
fi
6868
dotnet test --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
6969
--configuration Release --no-build --framework net8.0 \
70+
-p:EnableMSTestRunner=false -p:TestingPlatformDotnetTestSupport=false \
7071
--filter "$FILTER" --logger "trx"
7172
7273
- name: Test (net10.0)
@@ -82,6 +83,7 @@ jobs:
8283
fi
8384
dotnet test --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
8485
--configuration Release --no-build --framework net10.0 \
86+
-p:EnableMSTestRunner=false -p:TestingPlatformDotnetTestSupport=false \
8587
--filter "$FILTER" --logger "trx"
8688
8789
- name: Upload Test Results

0 commit comments

Comments
 (0)