Commit 6bc63f8 1 parent 43da4b3 commit 6bc63f8 Copy full SHA for 6bc63f8
File tree 1 file changed +2
-12
lines changed
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 38
38
39
39
# See: https://docs.sonarsource.com/sonarcloud/enriching/test-coverage/dotnet-test-coverage
40
40
- 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
42
42
displayName: 'Begin analysis on SonarCloud'
43
43
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) # Do not run for PullRequests
44
44
@@ -49,21 +49,11 @@ jobs:
49
49
projects : ' **/test/**/*.csproj'
50
50
arguments : ' --configuration Debug --framework net8.0'
51
51
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
-
60
52
- task : CmdLine@2
61
53
inputs :
62
54
script : |
63
55
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"
67
57
displayName : ' Execute WireMock.Net.Tests with Coverage'
68
58
69
59
- task : CmdLine@2
You can’t perform that action at this time.
0 commit comments