Describe the bug
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:
using System.Diagnostics;
namespace PlaywrightTests;
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
var process = new Process();
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();
}
}
- Run the test via
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.
Describe the bug
When launching a process
StandardOutputandStandardErroris 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 PlaywrightTestsUnitTest1.csfile and put the following into it:dotnet testExpected behavior
Output shown
Actual behavior
Nothing shown
Additional context
Affected project: https://github.com/microsoft/playwright-dotnet
When doing the same via
dotnet new consoleit works and gets displayed.