From c54ac663c8ec891f3ce7608a85b24cb45578bb9c Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Wed, 7 Aug 2019 08:12:40 +0100 Subject: [PATCH] (build) Fix Test Coverage Not sure why this broke as a result of the recent changes made by me, but it did. Excluding the NUnit3 assembly from Test Coverage fixes the problem. --- recipe.cake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe.cake b/recipe.cake index 68aabab..bbf1b7a 100644 --- a/recipe.cake +++ b/recipe.cake @@ -20,7 +20,7 @@ BuildParameters.PrintParameters(Context); ToolSettings.SetToolSettings( context: Context, dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.AppCenter.Tests/*.cs" }, - testCoverageFilter: "+[*]* -[nunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* ", + testCoverageFilter: "+[*]* -[nunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* -[NUnit3.*]*", testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*", testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs"); Build.RunDotNetCore();