Skip to content

Commit d8d7388

Browse files
committed
update coverlet.console, add to build pipeline
1 parent 45bc5bc commit d8d7388

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: build.proj

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<Target Name="BuildAllProjects">
1010
<RemoveDir Directories="$(OutputPath)" Condition="Exists('$(MSBuildThisFileDirectory)\build')" />
1111
<Exec Command="dotnet build &quot;$(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.tasks.csproj&quot; -c $(Configuration)" />
12+
<Exec Command="dotnet build &quot;$(MSBuildThisFileDirectory)src\coverlet.console\coverlet.console.csproj&quot; -c $(Configuration)" />
1213
</Target>
1314

1415
<Target Name="PublishMSBuildTaskProject" AfterTargets="BuildAllProjects">

Diff for: src/coverlet.console/Program.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static int Main(string[] args)
3434
CommandOption excludeFilters = app.Option("--exclude", "Filter expressions to exclude specific modules and types.", CommandOptionType.MultipleValue);
3535
CommandOption includeFilters = app.Option("--include", "Filter expressions to include only specific modules and types.", CommandOptionType.MultipleValue);
3636
CommandOption excludedSourceFiles = app.Option("--exclude-by-file", "Glob patterns specifying source files to exclude.", CommandOptionType.MultipleValue);
37+
CommandOption mergeWith = app.Option("--merge-with", "Path to existing coverage result to merge.", CommandOptionType.SingleValue);
3738

3839
app.OnExecute(() =>
3940
{
@@ -43,7 +44,7 @@ static int Main(string[] args)
4344
if (!target.HasValue())
4445
throw new CommandParsingException(app, "Target must be specified.");
4546

46-
Coverage coverage = new Coverage(module.Value, excludeFilters.Values.ToArray(), includeFilters.Values.ToArray(), excludedSourceFiles.Values.ToArray());
47+
Coverage coverage = new Coverage(module.Value, excludeFilters.Values.ToArray(), includeFilters.Values.ToArray(), excludedSourceFiles.Values.ToArray(), mergeWith.Value());
4748
coverage.PrepareModules();
4849

4950
Process process = new Process();

0 commit comments

Comments
 (0)