Skip to content

Commit 3048919

Browse files
Fix CI category filter syntax for NUnit tests
1 parent 9c153cb commit 3048919

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/CodeQuality.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ jobs:
5454
run: dotnet build CDP4-SDK.sln --no-restore /p:ContinuousIntegrationBuild=true
5555

5656
- name: Test with the dotnet CLI
57-
env:
58-
EXCLUDED_CATEGORIES: "WebServicesDependent|CICDExclusion"
59-
run: dotnet-coverage collect "dotnet test CDP4-SDK.sln --no-restore --no-build --verbosity normal --filter \"TestCategory!~${{ env.EXCLUDED_CATEGORIES }}\"" -f xml -o "coverage.xml"
57+
run: dotnet-coverage collect "dotnet test CDP4-SDK.sln --no-restore --no-build --verbosity normal --filter \"(TestCategory!=WebServicesDependent&TestCategory!=CICDExclusion&Category!=WebServicesDependent&Category!=CICDExclusion)\"" -f xml -o "coverage.xml"
6058

6159
- name: Sonarqube end
6260
env:

0 commit comments

Comments
 (0)