Skip to content

Commit

Permalink
(GH-30) Implemented ability to exclude/include namespaces during cove…
Browse files Browse the repository at this point in the history
…rage report

fixes #30
  • Loading branch information
AdmiringWorm committed Apr 21, 2019
1 parent f536376 commit 848e889
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion setup.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#addin "nuget:?package=Cake.Coverlet&version=2.0.1"
#addin "nuget:?package=Cake.Coverlet&version=2.2.1"
#load "nuget:https://ci.appveyor.com/nuget/cake-recipe-pylg5x5ru9c2?package=Cake.Recipe&prerelease&version=0.3.0-alpha0492"

Environment.SetVariableNames();
Expand Down Expand Up @@ -63,6 +63,15 @@ BuildParameters.Tasks.DotNetCoreTestTask
}
}
foreach (var item in ToolSettings.TestCoverageFilter.Split(' ')) {
if (item[0] == '+') {
settings.WithInclusion(item.TrimStart('+'));
}
else if (item[0] == '-') {
settings.WithFilter(item.TrimStart('-'));
}
}
var testSettings = new DotNetCoreTestSettings {
Configuration = BuildParameters.Configuration,
NoBuild = true
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.Transifex.Tests/Cake.Transifex.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="Cake.Testing" Version="0.33.0" />
<PackageReference Include="coverlet.msbuild" Version="2.5.1">
<PackageReference Include="coverlet.msbuild" Version="2.6.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/SolutionInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection
using System.Reflection;

[assembly: AssemblyVersion("0.8.0")]
[assembly: AssemblyFileVersion("0.8.0")]

0 comments on commit 848e889

Please sign in to comment.