File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,21 +44,20 @@ jobs:
4444 # NOTE: Test project currently only targets net10.0. See TODO in NumSharp.UnitTest.csproj
4545 # to re-enable net8.0 when TUnit compatibility is resolved.
4646 #
47- # Test filtering:
47+ # Test filtering (using dotnet test --filter with MSTest-style syntax) :
4848 # - OpenBugs: excluded on all platforms (known-failing bug reproductions)
4949 # - WindowsOnly: excluded on non-Windows (require GDI+/System.Drawing.Common)
5050 - name : Test (net10.0)
5151 shell : bash
5252 run : |
5353 if [[ "$RUNNER_OS" == "Windows" ]]; then
54- FILTER='/*/*/*/*[Category !=OpenBugs] '
54+ FILTER='TestCategory !=OpenBugs'
5555 else
56- # Combine filters with separate brackets (TUnit syntax for AND)
57- FILTER='/*/*/*/*[Category!=OpenBugs][Category!=WindowsOnly]'
56+ FILTER='TestCategory!=OpenBugs & TestCategory!=WindowsOnly'
5857 fi
59- dotnet run --project test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
58+ dotnet test test/NumSharp.UnitTest/NumSharp.UnitTest.csproj \
6059 --configuration Release --no-build --framework net10.0 \
61- -- --treenode- filter "$FILTER" --report- trx
60+ --filter "$FILTER" --logger trx
6261
6362 - name : Upload Test Results
6463 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments