From 4d7cc4b6c2be9b36d2ca7ac406f5b6cb79d22258 Mon Sep 17 00:00:00 2001 From: Igor Velikorossov Date: Mon, 19 Jun 2023 18:09:22 +1000 Subject: [PATCH] Revert "Drop code coverage (#4081)" This reverts commit 9e1a908e70ad28cc44aecc262fe702afc9b9cede. --- eng/pipelines/templates/BuildAndTest.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/templates/BuildAndTest.yml b/eng/pipelines/templates/BuildAndTest.yml index 0bbbcad249a..e2598989545 100644 --- a/eng/pipelines/templates/BuildAndTest.yml +++ b/eng/pipelines/templates/BuildAndTest.yml @@ -60,7 +60,10 @@ steps: displayName: Build - ${{ if ne(parameters.skipTests, 'true') }}: - - script: ${{ parameters.buildScript }} -test -configuration ${{ parameters.buildConfig }} /bl:${{ parameters.repoLogPath }}/tests.binlog $(_OfficialBuildIdArgs) + - script: $(Build.SourcesDirectory)/.dotnet/dotnet dotnet-coverage collect + --settings $(Build.SourcesDirectory)/eng/CodeCoverage.config + --output ${{ parameters.repoTestResultsPath }} + "${{ parameters.buildScript }} -test -configuration ${{ parameters.buildConfig }} /bl:${{ parameters.repoLogPath }}/tests.binlog $(_OfficialBuildIdArgs)" displayName: Run tests - pwsh: |