Skip to content

Commit 3c56a61

Browse files
author
John Luo
committed
Logging - skipped tests
1 parent 08ecbd1 commit 3c56a61

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/Framework/test/Microsoft.AspNetCore.App.UnitTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
<ItemGroup>
5050
<Reference Include="Newtonsoft.Json" />
51+
<Reference Include="Microsoft.Extensions.Logging.Testing" />
5152
</ItemGroup>
5253

5354
<ItemGroup>

src/Framework/test/TargetingPackTests.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
using System.Reflection.Metadata;
1010
using System.Reflection.PortableExecutable;
1111
using System.Runtime.CompilerServices;
12+
using Microsoft.Extensions.Logging;
13+
using Microsoft.Extensions.Logging.Testing;
1214
using Newtonsoft.Json.Linq;
1315
using Xunit;
1416
using Xunit.Abstractions;
1517

1618
namespace Microsoft.AspNetCore
1719
{
18-
public class TargetingPackTests
20+
public class TargetingPackTests : LoggedTest
1921
{
2022
private readonly string _expectedRid;
2123
private readonly string _targetingPackRoot;
@@ -35,8 +37,13 @@ public void AssembliesAreReferenceAssemblies()
3537
{
3638
if (!_isTargetingPackBuilding)
3739
{
40+
Logger.LogInformation("Skipping ref tests");
3841
return;
3942
}
43+
else
44+
{
45+
Logger.LogInformation("Running ref tests");
46+
}
4047

4148
IEnumerable<string> dlls = Directory.GetFiles(_targetingPackRoot, "*.dll", SearchOption.AllDirectories);
4249
Assert.NotEmpty(dlls);

0 commit comments

Comments
 (0)