Skip to content

[Feature]: Stream logs #4478

@verdie-g

Description

@verdie-g

Problem Statement

I would like the logs to be displayed in real time in Rider rather than at the end of the test.

For example this test will print 3 lines only at the end.

    [Test]
    public async Task X()
    {
        for (int i = 0; i < 3; i += 1)
        {
            // TestContext.Current!.Output.WriteLine(i.ToString());
            // Console.WriteLine(i);
            TestContext.Current!.GetDefaultLogger().LogInformation(i.ToString());
            await Task.Delay(1000);
        }
    }

Proposed Solution

In Rider, the logs are displayed instantly in the test output.

Alternatives Considered

No response

Feature Category

Test Output / Reporting

How important is this feature to you?

Nice to have - would improve my experience

Additional Context

No response

Contribution

  • I'm willing to submit a pull request for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions