Skip to content

Commit 6d67e2a

Browse files
authored
Restore detailed test logging to console output (#45343)
2 parents 449ccc0 + d964f36 commit 6d67e2a

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

test/HelixTasks/SDKCustomCreateXUnitWorkItemsWithTestExclusion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private async Task<List<ITaskItem>> PrepareWorkItem(ITaskItem xunitProject)
152152

153153
var testFilter = string.IsNullOrEmpty(assemblyPartitionInfo.ClassListArgumentString) ? "" : $"--filter \"{assemblyPartitionInfo.ClassListArgumentString}\"";
154154
command = $"{driver} test {assemblyName} -e HELIX_WORK_ITEM_TIMEOUT={timeout} {testExecutionDirectory} {msbuildAdditionalSdkResolverFolder} " +
155-
$"{(XUnitArguments != null ? " " + XUnitArguments : "")} --results-directory .{Path.DirectorySeparatorChar} --logger trx --blame-hang --blame-hang-timeout 30m {testFilter} -- {arguments}";
155+
$"{(XUnitArguments != null ? " " + XUnitArguments : "")} --results-directory .{Path.DirectorySeparatorChar} --logger trx --logger \"console;verbosity=detailed\" --blame-hang --blame-hang-timeout 30m {testFilter} -- {arguments}";
156156

157157
Log.LogMessage($"Creating work item with properties Identity: {assemblyName}, PayloadDirectory: {publishDirectory}, Command: {command}");
158158

test/Microsoft.NET.Build.Containers.UnitTests/RegistryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,12 @@ public async Task UploadBlobChunkedAsync_Failure()
395395
api.Verify(api => api.Blob.Upload.UploadChunkAsync(It.IsIn(absoluteUploadUri, uploadPath), It.IsAny<HttpContent>(), It.IsAny<CancellationToken>()), Times.Exactly(1));
396396
}
397397

398+
[Theory(Skip = "https://github.com/dotnet/sdk/issues/42820")]
398399
[InlineData(true, true, true)]
399400
[InlineData(false, true, true)]
400401
[InlineData(true, false, true)]
401402
[InlineData(false, false, true)]
402403
[InlineData(false, false, false)]
403-
[Theory]
404404
public async Task InsecureRegistry(bool isInsecureRegistry, bool serverIsHttps, bool httpServerCloseAbortive)
405405
{
406406
ILogger logger = _loggerFactory.CreateLogger(nameof(InsecureRegistry));

test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void It_targets_the_right_shared_framework(string targetFramework, string
4848
}
4949

5050
// Test behavior when implicit version differs for framework-dependent and self-contained apps
51-
[Theory]
51+
[Theory(Skip = "https://github.com/dotnet/sdk/issues/45417")]
5252
[InlineData("netcoreapp1.0", false, true, "1.0.5")]
5353
[InlineData("netcoreapp1.0", true, true, "1.0.16")]
5454
[InlineData("netcoreapp1.0", false, false, "1.0.5")]

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToStoreAProjectWithDependencies.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void compose_dependencies_noopt()
121121
storeDirectory.Should().OnlyHaveFiles(files_on_disk);
122122
}
123123

124-
[Fact]
124+
[Fact(Skip = "https://github.com/dotnet/sdk/issues/45417")]
125125
public void store_nativeonlyassets()
126126
{
127127
TestAsset simpleDependenciesAsset = _testAssetsManager

test/dotnet-new.Tests/DotnetNewListTests.Approval.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ namespace Microsoft.DotNet.Cli.New.IntegrationTests
77
{
88
public partial class DotnetNewListTests
99
{
10-
[Theory]
10+
#pragma warning disable xUnit1004 // Test methods should not be skipped
11+
[Theory(Skip = "https://github.com/dotnet/sdk/issues/45406")]
1112
[InlineData("-l")]
1213
[InlineData("--list")]
1314
public Task BasicTest_WhenLegacyCommandIsUsed(string commandName)
@@ -27,7 +28,7 @@ public Task BasicTest_WhenLegacyCommandIsUsed(string commandName)
2728
.DisableRequireUniquePrefix();
2829
}
2930

30-
[Fact]
31+
[Fact(Skip = "https://github.com/dotnet/sdk/issues/45406")]
3132
public Task BasicTest_WhenListCommandIsUsed()
3233
{
3334
CommandResult commandResult = new DotnetNewCommand(_log, "list")
@@ -41,6 +42,7 @@ public Task BasicTest_WhenListCommandIsUsed()
4142

4243
return Verify(commandResult.StdOut).UniqueForOSPlatform();
4344
}
45+
#pragma warning restore xUnit1004
4446

4547
[Fact]
4648
public Task Constraints_CanShowMessageIfTemplateGroupIsRestricted()

0 commit comments

Comments
 (0)