You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NUnit3TestAdapter v5 Does Not Display Console.WriteLine in Azure Pipelines
After upgrading from NUnit3TestAdapter v4 to v5, Console.WriteLine statements no longer appear in Azure DevOps Pipelines logs. This impacts both standard console output and Azure-specific logging
Code Example
[Test]
public void TestConsoleOutput()
{
string version = "1.2.3";
Console.WriteLine($"The version is {version}");
Console.WriteLine($"##vso[task.setvariable variable=version;]{version}");
}
Environment:
NUnit3TestAdapter Version: 5.x
Test Framework: NUnit 3
Azure DevOps Pipeline: dotnet test
.NET Version: .NET8
OS: (windows-latest 2025)
This issue affects Azure DevOps logging commands (e.g., ##vso[task.setvariable]), making it difficult to pass test results dynamically to the pipeline.