Skip to content

Commit 6bc63f8

Browse files
committed
fix?
1 parent 43da4b3 commit 6bc63f8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

azure-pipelines-ci.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
3939
# See: https://docs.sonarsource.com/sonarcloud/enriching/test-coverage/dotnet-test-coverage
4040
- script: |
41-
dotnet sonarscanner begin /k:"WireMock-Net_WireMock.Net" /o:"wiremock-net" /d:sonar.branch.name=$(Build.SourceBranchName) /d:sonar.host.url="https://sonarcloud.io" /d:sonar.token="$(SONAR_TOKEN)" /d:sonar.pullrequest.provider=github /d:sonar.dotnet.excludeTestProjects=true /d:sonar.cs.vscoveragexml.reportsPaths=**/wiremock-coverage-*.xml /d:sonar.verbose=true
41+
dotnet sonarscanner begin /k:"WireMock-Net_WireMock.Net" /o:"wiremock-net" /d:sonar.branch.name=$(Build.SourceBranchName) /d:sonar.host.url="https://sonarcloud.io" /d:sonar.token="$(SONAR_TOKEN)" /d:sonar.pullrequest.provider=github /d:sonar.cs.vscoveragexml.reportsPaths=**/wiremock-coverage-*.xml /d:sonar.verbose=true
4242
displayName: 'Begin analysis on SonarCloud'
4343
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) # Do not run for PullRequests
4444
@@ -49,21 +49,11 @@ jobs:
4949
projects: '**/test/**/*.csproj'
5050
arguments: '--configuration Debug --framework net8.0'
5151

52-
# https://github.com/thomhurst/TUnit/issues/621
53-
# - task: CmdLine@2
54-
# inputs:
55-
# script: |
56-
# dotnet-coverage collect "dotnet test ./test/WireMock.Net.Tests/WireMock.Net.Tests.csproj --configuration Debug --no-build --framework net8.0" -f xml -o "wiremock-coverage-xunit.xml"
57-
# dotnet-coverage collect "dotnet test ./test/WireMock.Net.TUnitTests/WireMock.Net.TUnitTests.csproj --configuration Debug --no-build --framework net8.0" -f xml -o "wiremock-coverage-tunit.xml"
58-
# displayName: 'Execute WireMock.Net.Tests with Coverage'
59-
6052
- task: CmdLine@2
6153
inputs:
6254
script: |
6355
dotnet-coverage collect "dotnet test ./test/WireMock.Net.Tests/WireMock.Net.Tests.csproj --configuration Debug --no-build --framework net8.0" -f xml -o "wiremock-coverage-xunit.xml"
64-
dotnet test ./test/WireMock.Net.TUnitTests/WireMock.Net.TUnitTests.csproj --configuration Debug --framework net8.0 -- --diagnostic
65-
find . -path "*/TestResults/*.log" -exec cat {} +
66-
find . -path "*/TestResults/*.diag" -exec cat {} +
56+
dotnet-coverage collect "dotnet test ./test/WireMock.Net.TUnitTests/WireMock.Net.TUnitTests.csproj --configuration Debug --no-build --framework net8.0" -f xml -o "wiremock-coverage-tunit.xml"
6757
displayName: 'Execute WireMock.Net.Tests with Coverage'
6858

6959
- task: CmdLine@2

0 commit comments

Comments
 (0)