From cb79971eaf2c7aaa082f96bb0450ba2e04b892d0 Mon Sep 17 00:00:00 2001 From: martincostello Date: Sat, 12 Feb 2022 14:36:29 +0000 Subject: [PATCH] Add code coverage Add coverlet.msbuild to collect code coverage from the tests. --- .gitignore | 3 ++- src/Polly.Specs/Polly.Specs.csproj | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 08bc694c20c..6ef7d753859 100644 --- a/.gitignore +++ b/.gitignore @@ -123,4 +123,5 @@ tools *.lock.json *.nuget.targets -*.nuget.props \ No newline at end of file +*.nuget.props +coverage.*.json diff --git a/src/Polly.Specs/Polly.Specs.csproj b/src/Polly.Specs/Polly.Specs.csproj index 6ad7be03aec..7c8b03df984 100644 --- a/src/Polly.Specs/Polly.Specs.csproj +++ b/src/Polly.Specs/Polly.Specs.csproj @@ -12,6 +12,7 @@ + @@ -23,4 +24,11 @@ + + true + [xunit.*]* + System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute + 75,60,70 + +