Skip to content

dotnet test output can be hard to navigate #51952

@Youssef1313

Description

@Youssef1313

I came across a case in microsoft/testfx where I ended up with one projects not installing hangdump extension. And it was failing with:

  Unknown option '--hangdump'
  Unknown option '--hangdump-timeout'

The above error was buried in the middle of the big output of dotnet test.

The output summary near the end was only this:

2025-12-01T09:55:12.5944938Z �[31mTest run summary: Failed!
2025-12-01T09:55:12.5946040Z   �[mD:\a\_work\1\s\artifacts\bin\MSTest.Engine.UnitTests\Debug\net8.0\MSTest.Engine.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(1s 841ms)�[m
2025-12-01T09:55:12.5946645Z   �[mD:\a\_work\1\s\artifacts\bin\TestFramework.UnitTests\Debug\net9.0\Microsoft.VisualStudio.TestPlatform.TestFramework.UnitTests.dll (net9.0|x64) �[32mpassed�[m �[90m(11s 397ms)�[m
2025-12-01T09:55:12.5947221Z   �[mD:\a\_work\1\s\artifacts\bin\MSTest.IntegrationTests\Debug\net462\MSTest.IntegrationTests.exe (net48|x64) �[32mpassed�[m �[90m(21s 125ms)�[m
2025-12-01T09:55:12.5947777Z   �[mD:\a\_work\1\s\artifacts\bin\MSTest.Engine.UnitTests\Debug\net9.0\MSTest.Engine.UnitTests.dll (net9.0|x64) �[32mpassed�[m �[90m(3s 629ms)�[m
2025-12-01T09:55:12.5948461Z   �[mD:\a\_work\1\s\artifacts\bin\MSTest.VstestConsoleWrapper.IntegrationTests\Debug\net462\MSTest.VstestConsoleWrapper.IntegrationTests.exe (net48|x64) �[32mpassed�[m �[90m(21m 04s 771ms)�[m
2025-12-01T09:55:12.5949178Z   �[mD:\a\_work\1\s\artifacts\bin\TestFramework.UnitTests\Debug\net8.0\Microsoft.VisualStudio.TestPlatform.TestFramework.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(8s 369ms)�[m
2025-12-01T09:55:12.5949811Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.PlatformServices.UnitTests\Debug\net462\MSTestAdapter.PlatformServices.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(16s 654ms)�[m
2025-12-01T09:55:12.5950713Z   �[mD:\a\_work\1\s\artifacts\bin\PlatformServices.Desktop.IntegrationTests\Debug\net462\PlatformServices.Desktop.IntegrationTests.exe (net48|x64) �[32mpassed�[m �[90m(4s 707ms)�[m
2025-12-01T09:55:12.5951438Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.PlatformServices.UnitTests\Debug\net8.0-windows10.0.18362.0\MSTestAdapter.PlatformServices.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(5s 636ms)�[m
2025-12-01T09:55:12.5952063Z   �[mD:\a\_work\1\s\artifacts\bin\MSTest.Analyzers.UnitTests\Debug\net8.0\MSTest.Analyzers.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(55s 628ms)�[m
2025-12-01T09:55:12.5952688Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net9.0\Microsoft.Testing.Platform.UnitTests.dll (net9.0|x64) �[32mpassed�[m �[90m(9s 089ms)�[m
2025-12-01T09:55:12.5953340Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Platform.MSBuild.UnitTests\Debug\net8.0\Microsoft.Testing.Platform.MSBuild.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(2s 227ms)�[m
2025-12-01T09:55:12.5953945Z   �[mD:\a\_work\1\s\artifacts\bin\MSTest.SourceGeneration.UnitTests\Debug\net8.0\MSTest.SourceGeneration.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(6s 220ms)�[m
2025-12-01T09:55:12.5954518Z   �[mD:\a\_work\1\s\artifacts\bin\Playground\Debug\net9.0\Playground.dll (net9.0|x64) �[32mpassed�[m �[90m(402ms)�[m
2025-12-01T09:55:12.5955161Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.PlatformServices.UnitTests\Debug\net9.0\MSTestAdapter.PlatformServices.UnitTests.dll (net9.0|x64) �[32mpassed�[m �[90m(5s 172ms)�[m
2025-12-01T09:55:12.5955790Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.PlatformServices.UnitTests\Debug\net8.0\MSTestAdapter.PlatformServices.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(4s 760ms)�[m
2025-12-01T09:55:12.5956479Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Extensions.VSTestBridge.UnitTests\Debug\net462\Microsoft.Testing.Extensions.VSTestBridge.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(4s 933ms)�[m
2025-12-01T09:55:12.5957060Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net462\Microsoft.Testing.Platform.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(25s 020ms)�[m
2025-12-01T09:55:12.5957560Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Extensions.VSTestBridge.UnitTests\Debug\net8.0\Microsoft.Testing.Extensions.VSTestBridge.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(1s 216ms)�[m
2025-12-01T09:55:12.5957979Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net472\Microsoft.Testing.Extensions.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(7s 435ms)�[m
2025-12-01T09:55:12.5958491Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net9.0\Microsoft.Testing.Extensions.UnitTests.dll (net9.0|x64) �[32mpassed�[m �[90m(10s 248ms)�[m
2025-12-01T09:55:12.5958918Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.UnitTests\Debug\net9.0\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.UnitTests.dll (net9.0|x64) �[32mpassed�[m �[90m(1s 507ms)�[m
2025-12-01T09:55:12.5959393Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.UnitTests\Debug\net8.0-windows10.0.18362.0\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(2s 185ms)�[m
2025-12-01T09:55:12.5959717Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Extensions.VSTestBridge.UnitTests\Debug\net9.0\Microsoft.Testing.Extensions.VSTestBridge.UnitTests.dll (net9.0|x64) �[32mpassed�[m �[90m(1s 654ms)�[m
2025-12-01T09:55:12.5960006Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net462\Microsoft.Testing.Extensions.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(8s 192ms)�[m
2025-12-01T09:55:12.5960319Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net8.0\Microsoft.Testing.Platform.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(11s 294ms)�[m
2025-12-01T09:55:12.5960638Z   �[mD:\a\_work\1\s\artifacts\bin\TestFramework.UnitTests\Debug\net8.0-windows10.0.18362.0\Microsoft.VisualStudio.TestPlatform.TestFramework.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(10s 556ms)�[m
2025-12-01T09:55:12.5961030Z   �[mD:\a\_work\1\s\artifacts\bin\MSTest.Analyzers.UnitTests\Debug\net472\MSTest.Analyzers.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(1m 25s 984ms)�[m
2025-12-01T09:55:12.5961333Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.PlatformServices.UnitTests\Debug\net48\MSTestAdapter.PlatformServices.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(15s 771ms)�[m
2025-12-01T09:55:12.5961630Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.UnitTests\Debug\net462\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(4s 941ms)�[m
2025-12-01T09:55:12.5961927Z   �[mD:\a\_work\1\s\artifacts\bin\TestFramework.UnitTests\Debug\net48\Microsoft.VisualStudio.TestPlatform.TestFramework.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(16s 207ms)�[m
2025-12-01T09:55:12.5962215Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net8.0\Microsoft.Testing.Extensions.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(8s 009ms)�[m
2025-12-01T09:55:12.5962512Z   �[mD:\a\_work\1\s\artifacts\bin\MSTest.Acceptance.IntegrationTests\Debug\net10.0\MSTest.Acceptance.IntegrationTests.dll (net10.0|x64) �[32mpassed�[m �[90m(22m 13s 069ms)�[m
2025-12-01T09:55:12.5963076Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.UnitTests\Debug\net48\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(4s 064ms)�[m
2025-12-01T09:55:12.5963677Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net10.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll (net10.0|x64) �[32mpassed�[m �[90m(17m 38s 138ms)�[m
2025-12-01T09:55:12.5964204Z   �[mD:\a\_work\1\s\artifacts\bin\Microsoft.Testing.Platform.MSBuild.UnitTests\Debug\net9.0\Microsoft.Testing.Platform.MSBuild.UnitTests.dll (net9.0|x64) �[32mpassed�[m �[90m(2s 583ms)�[m
2025-12-01T09:55:12.5964698Z   �[mD:\a\_work\1\s\artifacts\bin\MSTestAdapter.UnitTests\Debug\net8.0\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.UnitTests.dll (net8.0|x64) �[32mpassed�[m �[90m(1s 160ms)�[m
2025-12-01T09:55:12.5965225Z   �[mD:\a\_work\1\s\artifacts\bin\MSTest.Engine.UnitTests\Debug\net462\MSTest.Engine.UnitTests.exe (net48|x64) �[32mpassed�[m �[90m(4s 134ms)�[m
2025-12-01T09:55:12.5965515Z 
2025-12-01T09:55:12.5965790Z �[31m  error: 2
2025-12-01T09:55:12.5966044Z �[m
2025-12-01T09:55:12.5966281Z �[m  total: 11460
2025-12-01T09:55:12.5966478Z   failed: 0
2025-12-01T09:55:12.5966679Z   succeeded: 11417
2025-12-01T09:55:12.5966854Z   skipped: 43
2025-12-01T09:55:12.5967043Z   duration: 22m 33s 150ms
2025-12-01T09:55:12.5967208Z Test run completed with non-success exit code: 1 (see: https://aka.ms/testingplatform/exitcodes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions