Skip to content

Commit 4a36281

Browse files
committed
Add debug messages
1 parent 01aec52 commit 4a36281

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Directory.Build.targets

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
<Using Namespace="System.Diagnostics" />
3535
<Using Namespace="System.IO.Pipes" />
3636
<Code>
37+
Log.LogMessage(MessageImportance.High, $"Collecting code coverage for {PipeName} .");
38+
3739
using var coverlet = Process.Start(
3840
@"$(DotNetTool)",
3941
$@"tool run coverlet ""{TestAssembly}"" " +
@@ -49,9 +51,13 @@
4951
@"""");
5052
CoverletId = coverlet.Id;
5153

54+
Log.LogMessage(MessageImportance.High, $"Collecting code coverage for {PipeName} ..");
55+
5256
using var client = new NamedPipeClientStream(PipeName);
5357
client.Connect();
5458
client.WriteByte(0);
59+
60+
Log.LogMessage(MessageImportance.High, $"Collecting code coverage for {PipeName} ...");
5561
</Code>
5662
</Task>
5763

@@ -71,11 +77,17 @@
7177
<Using Namespace="System.Diagnostics" />
7278
<Using Namespace="System.IO.Pipes" />
7379
<Code>
80+
Log.LogMessage(MessageImportance.High, $"Collecting code coverage for {PipeName} ....");
81+
7482
using var client = new NamedPipeClientStream(PipeName);
7583
client.Connect();
7684

85+
Log.LogMessage(MessageImportance.High, $"Collecting code coverage for {PipeName} .....");
86+
7787
using var coverlet = Process.GetProcessById(CoverletId);
7888
coverlet.WaitForExit();
89+
90+
Log.LogMessage(MessageImportance.High, $"Collecting code coverage for {PipeName} ......");
7991
</Code>
8092
</Task>
8193

0 commit comments

Comments
 (0)