Skip to content

Commit 73d3546

Browse files
committed
Add codecov.
1 parent e75a9a5 commit 73d3546

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

build/test-all.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $full = $args[0]
77
foreach ($solutionPath in $solutionPaths) {
88
$solutionAbsPath = (Join-Path $rootFolder $solutionPath)
99
Set-Location $solutionAbsPath
10-
dotnet test --no-build --no-restore
10+
dotnet test --no-build --no-restore --collect:"XPlat Code Coverage"
1111
if (-Not $?) {
1212
Write-Host ("Test failed for the solution: " + $solutionPath)
1313
Set-Location $rootFolder

codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
codecov:
2+
branch: dev
3+
require_ci_to_pass: yes

common.test.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,12 @@
77
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
88
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
99
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="coverlet.collector" Version="3.1.0">
13+
<PrivateAssets>all</PrivateAssets>
14+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
15+
</PackageReference>
16+
</ItemGroup>
17+
1018
</Project>

0 commit comments

Comments
 (0)