Skip to content

Commit

Permalink
Doubled up execution starting/finished messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Jul 6, 2024
1 parent f72794a commit 9e3af28
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/xunit.runner.visualstudio/VsTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -583,13 +583,6 @@ await DiscoverTestsInAssembly(
executionOptions.SetDisableParallelization(true);
}

reporterMessageHandler.OnMessage(new TestAssemblyExecutionStarting
{
Assembly = runInfo.Assembly,
ExecutionOptions = executionOptions,
Seed = executionOptions.GetSeed(),
});

using var vsExecutionSink = new VsExecutionSink(reporterMessageHandler, frameworkHandle, logger, testCasesMap, () => cancelled);
var executionSinkOptions = new ExecutionSinkOptions
{
Expand All @@ -614,12 +607,6 @@ await DiscoverTestsInAssembly(

resultsSink.Finished.WaitOne();

reporterMessageHandler.OnMessage(new TestAssemblyExecutionFinished
{
Assembly = runInfo.Assembly,
ExecutionOptions = executionOptions,
ExecutionSummary = resultsSink.ExecutionSummary,
});
if ((resultsSink.ExecutionSummary.Failed != 0 || resultsSink.ExecutionSummary.Errors != 0) && executionOptions.GetStopOnTestFailOrDefault())
{
logger.Log("Canceling due to test failure...");
Expand Down

0 comments on commit 9e3af28

Please sign in to comment.