Skip to content

Commit

Permalink
Don't fail the test run if restoring test assemblies fails
Browse files Browse the repository at this point in the history
  • Loading branch information
pentp committed Aug 31, 2023
1 parent 8772e19 commit ddb831f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Stryker.Core/Stryker.Core/StrykerRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,14 @@ public StrykerRunResult RunMutationTest(IStrykerInputs inputs, ILoggerFactory lo
// Restore assemblies
foreach (var project in _mutationTestProcesses)
{
project.Restore();
try
{
project.Restore();
}
catch (Exception ex)
{
_logger.LogWarning(ex, "Failed to restore output assemblies for {ProjectFilePath}", project.Input.SourceProjectInfo.AnalyzerResult.ProjectFilePath);
}
}

reporters.OnAllMutantsTested(rootComponent, combinedTestProjectsInfo);
Expand Down

0 comments on commit ddb831f

Please sign in to comment.