We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When launching a process StandardOutput and StandardError is not shown. When launching the same code via a new console app it works.
StandardOutput
StandardError
Provide the steps to reproduce the behavior:
dotnet new mstest -n PlaywrightTests; cd PlaywrightTests
UnitTest1.cs
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(); } }
dotnet test
Output shown
Nothing shown
Affected project: https://github.com/microsoft/playwright-dotnet
When doing the same via dotnet new console it works and gets displayed.
dotnet new console
The text was updated successfully, but these errors were encountered:
Hi @mxschmitt thanks for reporting that. I managed to reproduce and marked it as bug. we will work on it soon.
Sorry, something went wrong.
I did some tests with our new test runner https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-runner-intro where we're sure we're not capturing the console output and looks like MSTest is not the culprit here but the VSTest platform that's capturing the output.
[TestClass] public class TestClass { [TestMethod] public void Test1() { var process = new Process(); 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(); } }
Successfully merging a pull request may close this issue.
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: