-
Notifications
You must be signed in to change notification settings - Fork 757
Open
Labels
InvestigateWe will look into thisWe will look into this
Description
Reproduction:
- https://github.com/mxschmitt/nunit-repro-2nd-console-write-not-working
dotnet buildpwsh bin/Debug/net8.0/playwright.ps1 install chromiumdotnet test
Expected:
Listener() - Test: TC1 with URL: https://example.com/
Expected: 1 - Actual: 1
Listener() - Test: TC2 with URL: https://example.com/
Expected: 2 - Actual: 2
Passed! - Failed: 0, Passed: 2, Skipped: 0, Total: 2, Duration: 2 s - PlaywrightTestsNUnit.dll (net8.0)
Actual:
(second Listener() line is missing)
Listener() - Test: TC1 with URL: https://example.com/
Expected: 1 - Actual: 1
Expected: 2 - Actual: 2
Why is the 2nd Listener() call not printed to the Console?
Passed! - Failed: 0, Passed: 2, Skipped: 0, Total: 2, Duration: 2 s - PlaywrightTestsNUnit.dll (net8.0)
Note:
Console.WriteLine is not working for the second test, if I change it to Console.Error.WriteLine it works.
I was trying to get a reproduction without Playwright so far, bug I failed so far (we dispatch events, so not sure what we would do different there).
Downstream bug:
Metadata
Metadata
Assignees
Labels
InvestigateWe will look into thisWe will look into this