Skip to content

Commit b48f874

Browse files
committed
ci: switch back to dotnet test --filter (MSTest-style syntax)
1 parent 476a818 commit b48f874

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)