Skip to content

Commit

Permalink
Collect artifacts in case of test abort/cancelled (#3606)
Browse files Browse the repository at this point in the history
Collect artifacts in case of test abort/cancelled
  • Loading branch information
MarcoRossignoli authored Apr 26, 2022
1 parent f8604cd commit 506db36
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vstest.console/Processors/RunTestsArgumentProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ private void TestRunRequest_OnRunCompletion(object sender, TestRunCompleteEventA
{
_output.Warning(false, CommandLineResources.SuggestTestAdapterPathIfNoTestsIsFound);
}
}

// Collect tests session artifacts for post processing
if (_commandLineOptions.ArtifactProcessingMode == ArtifactProcessingMode.Collect)
{
_artifactProcessingManager.CollectArtifacts(e, RunSettingsManager.Instance.ActiveRunSettings.SettingsXml);
}
// Collect tests session artifacts for post processing
if (_commandLineOptions.ArtifactProcessingMode == ArtifactProcessingMode.Collect)
{
_artifactProcessingManager.CollectArtifacts(e, RunSettingsManager.Instance.ActiveRunSettings.SettingsXml);
}
}
}
Expand Down

0 comments on commit 506db36

Please sign in to comment.