Add code coverage metric

This commit is contained in:
Oleksandr Melnyk 2018-05-14 22:40:47 +03:00
parent 4d44f67192
commit 699d9e333d
4 changed files with 14 additions and 1 deletions

View File

@ -11,6 +11,9 @@
<a href="https://ci.appveyor.com/project/uranium62/xxhash">
<img src="https://ci.appveyor.com/api/projects/status/j5gkm2rvxwu4gu3q?svg=true" alt="build" />
</a>
<a href="https://codecov.io/gh/uranium62/xxHash">
<img src="https://codecov.io/gh/uranium62/xxHash/branch/master/graph/badge.svg" alt="coverage"/>
</a>
<a href="https://github.com/uranium62/xxHash/blob/master/LICENSE">
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="license" />
</a>

View File

@ -2,6 +2,10 @@ version: xxHash-{branch}-{build}
test: off
before_build:
- choco install opencover.portable
- choco install codecov
install:
- ps: $env:DOTNET_BUILD_VERSION = $env:APPVEYOR_BUILD_NUMBER
@ -10,3 +14,7 @@ build_script:
artifacts:
- path: artifacts\*.nupkg
test_script:
- OpenCover.Console.exe -register:user -target:"dotnet.exe" -targetargs:"test src/Standart.Hash.xxHash.Test" -output:coverage.xml -oldstyle -filter:"+[Standart*]* -[*.Test]*"
- codecov -f "coverage.xml"

View File

@ -3,6 +3,7 @@
<PropertyGroup>
<IsPackable>false</IsPackable>
<TargetFramework>netcoreapp2.0</TargetFramework>
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>

View File

@ -9,6 +9,7 @@
<Optimize>false</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>full</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Buffers" Version="$(SystemBuffers)" />