From 699d9e333dbc1cfebd1619740bf48a6aaff1b19e Mon Sep 17 00:00:00 2001 From: Oleksandr Melnyk Date: Mon, 14 May 2018 22:40:47 +0300 Subject: [PATCH] Add code coverage metric --- README.md | 3 +++ appveyor.yml | 10 +++++++++- .../Standart.Hash.xxHash.Test.csproj | 1 + src/Standart.Hash.xxHash/Standart.Hash.xxHash.csproj | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d97b01..cce77d0 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,9 @@ build + + coverage + license diff --git a/appveyor.yml b/appveyor.yml index db94120..bb6c3e6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 @@ -9,4 +13,8 @@ build_script: - cmd: build.cmd artifacts: - - path: artifacts\*.nupkg \ No newline at end of file + - 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" \ No newline at end of file diff --git a/src/Standart.Hash.xxHash.Test/Standart.Hash.xxHash.Test.csproj b/src/Standart.Hash.xxHash.Test/Standart.Hash.xxHash.Test.csproj index cfa3709..7dfc6d9 100644 --- a/src/Standart.Hash.xxHash.Test/Standart.Hash.xxHash.Test.csproj +++ b/src/Standart.Hash.xxHash.Test/Standart.Hash.xxHash.Test.csproj @@ -3,6 +3,7 @@ false netcoreapp2.0 + full true diff --git a/src/Standart.Hash.xxHash/Standart.Hash.xxHash.csproj b/src/Standart.Hash.xxHash/Standart.Hash.xxHash.csproj index 5b8cf44..dc2d24c 100644 --- a/src/Standart.Hash.xxHash/Standart.Hash.xxHash.csproj +++ b/src/Standart.Hash.xxHash/Standart.Hash.xxHash.csproj @@ -9,6 +9,7 @@ false true AnyCPU + full