diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml
index 27bd0ec58..d1bd6fab0 100644
--- a/.azure-pipelines/ci-build.yml
+++ b/.azure-pipelines/ci-build.yml
@@ -105,20 +105,12 @@ extends:
--configuration $(BuildConfiguration) `
--no-build `
-- `
- --report-xunit-trx `
- --results-directory "$(Agent.TempDirectory)\TestResults" `
+ --report-azdo `
+ --publish-azdo-test-results `
+ --results-directory="$(Agent.TempDirectory)\TestResults" `
--minimum-expected-tests 1
displayName: 'test'
- - task: PublishTestResults@2
- displayName: 'Publish test results'
- condition: succeededOrFailed()
- inputs:
- testResultsFormat: VSTest
- testResultsFiles: '$(Agent.TempDirectory)\TestResults\*.trx'
- failTaskOnMissingResultsFile: true
- failTaskOnFailedTests: true
-
- task: EsrpCodeSigning@6
displayName: 'ESRP CodeSigning binaries'
inputs:
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index dd6755934..22ae8e30f 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -20,9 +20,12 @@ updates:
MicrosoftExtensions:
patterns:
- Microsoft.Extensions.*
- coverlet:
+ testing:
patterns:
- coverlet.*
+ - Microsoft.NET.Test.Sdk
+ - Microsoft.Testing.*
+ - xunit.*
cooldown:
default-days: 7
- package-ecosystem: dotnet-sdk
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index 08e79d22a..60207f6cc 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -45,7 +45,7 @@ jobs:
id: run_unit_tests
shell: pwsh
run: |
- dotnet test --solution Microsoft.OpenApi.slnx -c Release -v n --coverlet --coverlet-output-format cobertura
+ dotnet test --solution Microsoft.OpenApi.slnx -c Release -v n --results-directory=./TestResults --coverlet --coverlet-output-format cobertura --report-gh
- name: Install report generator
shell: pwsh
@@ -55,7 +55,7 @@ jobs:
- name: Generate coverage report
shell: pwsh
run: |
- reportgenerator -reports:**/coverage.cobertura*.xml -targetdir:./reports/coverage -reporttypes:"Html;MarkdownSummaryGithub;Cobertura"
+ reportgenerator -reports:./TestResults/**/coverage.cobertura.*.xml -targetdir:./reports/coverage -reporttypes:"Html;MarkdownSummaryGithub;Cobertura"
- name: Add coverage to job summary
shell: bash
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index 7cf6cdfa6..a75019cfd 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -66,5 +66,5 @@ jobs:
dotnet tool run dotnet-sonarscanner begin /k:"microsoft_OpenAPI.NET" /o:"microsoft" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover*.xml"
dotnet workload restore
dotnet build
- dotnet test --solution Microsoft.OpenApi.slnx --verbosity normal --coverlet --coverlet-output-format opencover
+ dotnet test --solution Microsoft.OpenApi.slnx --verbosity normal --coverlet --coverlet-output-format opencover --report-gh
dotnet tool run dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
diff --git a/test/Microsoft.OpenApi.Hidi.Tests/Microsoft.OpenApi.Hidi.Tests.csproj b/test/Microsoft.OpenApi.Hidi.Tests/Microsoft.OpenApi.Hidi.Tests.csproj
index 57543e05e..2271cbb81 100644
--- a/test/Microsoft.OpenApi.Hidi.Tests/Microsoft.OpenApi.Hidi.Tests.csproj
+++ b/test/Microsoft.OpenApi.Hidi.Tests/Microsoft.OpenApi.Hidi.Tests.csproj
@@ -16,6 +16,8 @@
+
+
diff --git a/test/Microsoft.OpenApi.Readers.Tests/Microsoft.OpenApi.Readers.Tests.csproj b/test/Microsoft.OpenApi.Readers.Tests/Microsoft.OpenApi.Readers.Tests.csproj
index 36463ff44..e3601ba20 100644
--- a/test/Microsoft.OpenApi.Readers.Tests/Microsoft.OpenApi.Readers.Tests.csproj
+++ b/test/Microsoft.OpenApi.Readers.Tests/Microsoft.OpenApi.Readers.Tests.csproj
@@ -18,6 +18,8 @@
+
+
diff --git a/test/Microsoft.OpenApi.Tests/Microsoft.OpenApi.Tests.csproj b/test/Microsoft.OpenApi.Tests/Microsoft.OpenApi.Tests.csproj
index 1ad1bc344..0a681a46c 100644
--- a/test/Microsoft.OpenApi.Tests/Microsoft.OpenApi.Tests.csproj
+++ b/test/Microsoft.OpenApi.Tests/Microsoft.OpenApi.Tests.csproj
@@ -11,6 +11,8 @@
+
+