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
The following exception occurred when running the test module with RunCommand 'C:\Users\ygerges\Desktop\sdk\artifacts\tmp\Debug\testing\19cefafa-91c4---0D0799BD\TestProject1\bin\Debug\net10.0\TestProject1.exe' and RunArguments ' ':
459
+
System.InvalidOperationException: A test session start event was received without a corresponding test session end.
460
+
at Microsoft.DotNet.Cli.Commands.Test.TestApplication.RunAsync() in C:\Users\ygerges\Desktop\sdk\src\Cli\dotnet\Commands\Test\MTP\TestApplication.cs:line 55
461
+
at Microsoft.DotNet.Cli.Commands.Test.TestApplicationActionQueue.Read(BuildOptions buildOptions, TestOptions testOptions, TerminalTestReporter output, Action`1 onHelpRequested) in C:\Users\ygerges\Desktop\sdk\src\Cli\dotnet\Commands\Test\MTP\TestApplicationActionQueue.cs:line 68
462
+
*/
463
+
result.StdErr.Should().MatchRegex("""
464
+
The following exception occurred when running the test module with RunCommand '.+?TestProject1(\..+?)?' and RunArguments ' ':
465
+
""");
466
+
467
+
result.StdErr.Should().Contain("System.InvalidOperationException: A test session start event was received without a corresponding test session end.");
468
+
469
+
// TODO: It's much better to introduce a new kind of "summary" indicating
470
+
// that the test app exited with zero exit code before sending test session end event
471
+
result.StdOut.Should().Contain("Test run summary: Passed!")
472
+
.And.Contain("total: 1")
473
+
.And.Contain("succeeded: 1")
474
+
.And.Contain("failed: 0")
475
+
.And.Contain("skipped: 0");
476
+
477
+
result.StdOut.Contains("Test run completed with non-success exit code: 1 (see: https://aka.ms/testingplatform/exitcodes)");
0 commit comments