Skip to content

Commit 1dffd9e

Browse files
committed
dotnet test
1 parent 0493d29 commit 1dffd9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

azure-pipelines-ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ jobs:
5959

6060
- task: CmdLine@2
6161
inputs:
62-
script: 'dotnet-coverage collect "dotnet test **/test/**/*.csproj --configuration Debug --no-build --framework net8.0" -f xml -o "wiremock-coverage.xml"'
62+
script: |
63+
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-1.xml"
64+
dotnet-coverage collect "dotnet test ./test/WireMock.Net.Aspire.Tests/WireMock.Net.Aspire.Tests.csproj --configuration Debug --no-build --framework net8.0" -f xml -o "wiremock-coverage-2.xml"
6365
displayName: 'Execute Unit Tests with Coverage'
6466

6567
- task: CmdLine@2
6668
displayName: 'Merge coverage files'
6769
inputs:
68-
script: 'dotnet coverage merge *.wiremock-coverage.xml --recursive --output ./test/wiremock-coverage.xml --output-format xml'
70+
script: 'dotnet coverage merge *.wiremock-coverage-*.xml --recursive --output ./test/wiremock-coverage.xml --output-format xml'
6971

7072
- script: |
7173
dotnet sonarscanner end /d:sonar.token="$(SONAR_TOKEN)"

0 commit comments

Comments
 (0)