Skip to content

NUnit3TestAdapter v5 Does Not Display Console.WriteLine in Azure Pipelines #1243

@nesreenmaged

Description

@nesreenmaged

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.

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