Skip to content

Commit b1fc5ec

Browse files
PanyushkinDPanyushkinD
authored andcommitted
Setup code coverage
1 parent ee5825a commit b1fc5ec

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

EFCore.CommonTools.Tests/EntityFrameworkCore.CommonTools.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16+
<PackageReference Include="coverlet.msbuild" Version="1.1.1" />
1617
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="2.0.2" />
1718
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.0.2" />
1819
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.1" />

appveyor.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
version: 1.0.0.{build}
1+
version: 2.0.0.{build}
22

33
image: Visual Studio 2017
44

55
before_build:
66
- nuget restore
77

88
test_script:
9-
- dotnet test --no-build .\EFCore.CommonTools.Tests\EntityFrameworkCore.CommonTools.Tests.csproj
9+
- dotnet test --no-build .\EFCore.CommonTools.Tests\EntityFrameworkCore.CommonTools.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
1010
- dotnet test --no-build .\EntityFramework.CommonTools.Tests\EntityFramework.CommonTools.Tests.csproj
1111

12+
after_test:
13+
- ps: |
14+
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
15+
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
16+
bash codecov.sh -f ".\EFCore.CommonTools.Tests\coverage.xml" -t 5a158edf-3f15-40d8-92d7-3b3dc67d079b
17+
1218
cache:
1319
- '%USERPROFILE%\.nuget\packages'

0 commit comments

Comments
 (0)