Add code coverage metric
This commit is contained in:
parent
4d44f67192
commit
699d9e333d
@ -11,6 +11,9 @@
|
|||||||
<a href="https://ci.appveyor.com/project/uranium62/xxhash">
|
<a href="https://ci.appveyor.com/project/uranium62/xxhash">
|
||||||
<img src="https://ci.appveyor.com/api/projects/status/j5gkm2rvxwu4gu3q?svg=true" alt="build" />
|
<img src="https://ci.appveyor.com/api/projects/status/j5gkm2rvxwu4gu3q?svg=true" alt="build" />
|
||||||
</a>
|
</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">
|
<a href="https://github.com/uranium62/xxHash/blob/master/LICENSE">
|
||||||
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="license" />
|
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="license" />
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
10
appveyor.yml
10
appveyor.yml
@ -2,6 +2,10 @@ version: xxHash-{branch}-{build}
|
|||||||
|
|
||||||
test: off
|
test: off
|
||||||
|
|
||||||
|
before_build:
|
||||||
|
- choco install opencover.portable
|
||||||
|
- choco install codecov
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: $env:DOTNET_BUILD_VERSION = $env:APPVEYOR_BUILD_NUMBER
|
- ps: $env:DOTNET_BUILD_VERSION = $env:APPVEYOR_BUILD_NUMBER
|
||||||
|
|
||||||
@ -9,4 +13,8 @@ build_script:
|
|||||||
- cmd: build.cmd
|
- cmd: build.cmd
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: artifacts\*.nupkg
|
- 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"
|
||||||
@ -3,6 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="System.Buffers" Version="$(SystemBuffers)" />
|
<PackageReference Include="System.Buffers" Version="$(SystemBuffers)" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user