Skip to content

Add properties to capture a possible test output to add to the TestNode #3740

@MarcoRossignoli

Description

@MarcoRossignoli

@bradwilson is not using the VSTestBridge where we capture the standard out/err using old properties from TestCase (PR #3486)

In the current TestNode properties list we don't have the counterpart for it https://github.com/microsoft/testfx/blob/main/src/Platform/Microsoft.Testing.Platform/Messages/TestNodeProperties.cs

The proposal TBD is to add

public record TextProperty(string Text)
public record TextErrorProperty(string Text)

that an adapter author can use to add text information associated with a test.

I would prefer to not have in the name StdOut/Err because these properties could be used also without the console StdOut/Err. An adapter could have a different mechanism to generate this information. Let's say the idea is to have textual information.

Otherwise we should go for specific

public record ConsoleStandardOutputProperty(string Text)
public record ConsoleStandardErrorProperty(string Text)

cc: @Evangelink @nohwnd

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: MTPBelongs to the Microsoft.Testing.Platform core libraryIn-PR

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions