Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming output #1766

Open
macsux opened this issue Feb 4, 2025 · 2 comments
Open

Streaming output #1766

macsux opened this issue Feb 4, 2025 · 2 comments

Comments

@macsux
Copy link

macsux commented Feb 4, 2025

Is there a way to get streaming output? This is very useful for long running tests that may interact with other systems or processes, like test containers. Sometimes something gets stuck that you can spot in logs while test is still running. Xunit supports this (at least in Rider).

Sample test

    [Test]
    public async Task Output()
    {
        for (int i = 0; i < 10; i++)
        {
            Console.WriteLine(i);
            await Task.Delay(1000);
        }
        
    }
@thomhurst
Copy link
Owner

If you run via the cli, you should get streaming output. Console output is automatically captured. As for shower in rider while tests are going - I'm not sure how I'd do that? Rider might have to handle that?

@macsux
Copy link
Author

macsux commented Feb 7, 2025

I've opened a request with Jetbrains team. They created a ticket, but I think you would need to get some upvotes for them to prioritize:

Thank you for contacting Rider Support.

I've created a corresponding feature request on our bug tracker: RIDER-122726 Streaming output for TUnit
Please upvote it to indicate your interest in the feature and subscribe to further status updates.

https://youtrack.jetbrains.com/issue/RIDER-122726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants