Skip to content

Test CheckTargetFrameworkDisplayName often fails in CI #45148

Open
@tmat

Description

@tmat

The test reads redirected std output, which ends up garbled.

 result.StdOut.StripTerminalLoggerProgressIndicators().Should().BeEquivalentTo(expectedFrameworkDisplayName);

Fails with message:

Expected string to be equivalent to ".NET Standard 2.1" with a length of 17, but "�[1F
.NET Standard 2.1" has a length of 23, differs near "�[1" (index 0).

Seems like StripTerminalLoggerProgressIndicators is not reliable. We should consider disabling the progress indicators when running in test environment rather than stripping them from the output.

Test disabled by #44899

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions