From 73d3546b43faaead8cf8a9a9e0b7485c1a87bb89 Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 15 Oct 2021 21:58:08 +0800 Subject: [PATCH] Add codecov. --- build/test-all.ps1 | 2 +- codecov.yml | 3 +++ common.test.props | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/build/test-all.ps1 b/build/test-all.ps1 index 9a94ec3760..3bd44527a7 100644 --- a/build/test-all.ps1 +++ b/build/test-all.ps1 @@ -7,7 +7,7 @@ $full = $args[0] foreach ($solutionPath in $solutionPaths) { $solutionAbsPath = (Join-Path $rootFolder $solutionPath) Set-Location $solutionAbsPath - dotnet test --no-build --no-restore + dotnet test --no-build --no-restore --collect:"XPlat Code Coverage" if (-Not $?) { Write-Host ("Test failed for the solution: " + $solutionPath) Set-Location $rootFolder diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..9d071b9f69 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,3 @@ +codecov: + branch: dev + require_ci_to_pass: yes diff --git a/common.test.props b/common.test.props index 233afe8282..b1a47c4d36 100644 --- a/common.test.props +++ b/common.test.props @@ -7,4 +7,12 @@ false false + + + + all + runtime; build; native; contentfiles; analyzers + + + \ No newline at end of file