You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When launching a process StandardOutput and StandardError is not shown. When launching the same code via a new console app it works.
Steps To Reproduce
Provide the steps to reproduce the behavior:
Create a new MSTest project via: dotnet new mstest -n PlaywrightTests; cd PlaywrightTests
Modify the UnitTest1.cs file and put the following into it:
usingSystem.Diagnostics;namespacePlaywrightTests;[TestClass]publicclassUnitTest1{[TestMethod]publicvoidTestMethod1(){varprocess=newProcess();process.StartInfo.FileName="C:\\Program Files\\PowerShell\\7\\pwsh.exe";process.StartInfo.Arguments="-c \"echo 'hello from stdout'; Write-Error 'hello from stderr'\"";process.Start();process.WaitForExit();}}
[TestClass]publicclassTestClass{[TestMethod]publicvoidTest1(){varprocess=newProcess();process.StartInfo.FileName="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe";process.StartInfo.Arguments="-c \"echo 'hello from stdout'; Write-Error 'hello from stderr'\"";process.Start();process.WaitForExit();}}
Describe the bug
When launching a process
StandardOutput
andStandardError
is not shown. When launching the same code via a new console app it works.Steps To Reproduce
Provide the steps to reproduce the behavior:
dotnet new mstest -n PlaywrightTests; cd PlaywrightTests
UnitTest1.cs
file and put the following into it:dotnet test
Expected behavior
Output shown
Actual behavior
Nothing shown
Additional context
Affected project: https://github.com/microsoft/playwright-dotnet
When doing the same via
dotnet new console
it works and gets displayed.The text was updated successfully, but these errors were encountered: