From cc2beb39d74379c86119cd9ea029f8aa17b31f72 Mon Sep 17 00:00:00 2001 From: Matt Kotsenas Date: Tue, 11 Jun 2024 09:08:14 -0700 Subject: [PATCH] Switch to using a before and after target --- build/targets/tests/Tests.targets | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/build/targets/tests/Tests.targets b/build/targets/tests/Tests.targets index 5abe6870..49bc6c6e 100644 --- a/build/targets/tests/Tests.targets +++ b/build/targets/tests/Tests.targets @@ -3,14 +3,28 @@ trx%3bLogFileName=$(MSBuildProjectName).trx $(ArtifactsTestResultsPath)/$(TargetFramework) - <_TestCodeCoverageMergedReport>$(ArtifactsTestResultsPath)/report.cobertura.xml + + <_TestCoverageGlob>$(ArtifactsTestResultsPath)/**/*.cobertura.xml + <_TestCoverageReportDirectory>$(ArtifactsTestResultsPath)/coverage - + + + + + + <_CoverageFiles Include="$(_TestCoverageGlob)" /> + + + + <_CoverageFiles Remove="@(_CoverageFiles)" /> + + + + - <_CoverageFiles Include="$(ArtifactsTestResultsPath)/**/*.cobertura.xml" /> + <_CoverageFiles Include="$(_TestCoverageGlob)" /> - - +