diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index eab5eb2c6..e0e42dced 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -33,7 +33,7 @@ - + diff --git a/src/Stryker.Abstractions/packages.lock.json b/src/Stryker.Abstractions/packages.lock.json index 58e647fa3..a8e249e90 100644 --- a/src/Stryker.Abstractions/packages.lock.json +++ b/src/Stryker.Abstractions/packages.lock.json @@ -71,11 +71,11 @@ }, "TestableIO.System.IO.Abstractions.Wrappers": { "type": "Direct", - "requested": "[21.1.1, )", - "resolved": "21.1.1", - "contentHash": "BVymeYb9xqUdffJq9zqVyGglyQDi8QXv+VYUM0Z9Mrfau+rFFGk6GmFhEiCC3TIGOfDSIFWFUPWzxXHXjWmXIQ==", + "requested": "[21.1.3, )", + "resolved": "21.1.3", + "contentHash": "5LEVwt5+K5TnL1ekfCbQszlgRnO77plpgQAgkXL7wXKGd0PQWE01eSss0+L7E8GGLGbtD7mzYJVq/bd79ZDBlQ==", "dependencies": { - "TestableIO.System.IO.Abstractions": "21.1.1" + "TestableIO.System.IO.Abstractions": "21.1.3" } }, "Buildalyzer.Logger": { @@ -1210,8 +1210,8 @@ }, "TestableIO.System.IO.Abstractions": { "type": "Transitive", - "resolved": "21.1.1", - "contentHash": "rOpwfPzkMnXEm1tXzCuFAIcB5vEy2WQJ4vZ4ixAHv6UE95ddYeJ6JJh4rg/3fmf+5ewit9Oful6POUjnbOkang==" + "resolved": "21.1.3", + "contentHash": "qe/gIjOPCoyiSCToouJx/vCvcTQXVGj/eJVRK/7s2F8yIv0zvEpjByfXZvS3yqmcpg0/S6x6w7DvNyPrLe/RRw==" }, "stryker.utilities": { "type": "Project", diff --git a/src/Stryker.CLI/Stryker.CLI.UnitTest/packages.lock.json b/src/Stryker.CLI/Stryker.CLI.UnitTest/packages.lock.json index 26d161300..5fe071496 100644 --- a/src/Stryker.CLI/Stryker.CLI.UnitTest/packages.lock.json +++ b/src/Stryker.CLI/Stryker.CLI.UnitTest/packages.lock.json @@ -1596,7 +1596,7 @@ "Stryker.DataCollector": "[4.4.0, )", "Stryker.Regex.Parser": "[1.0.0, )", "Stryker.RegexMutators": "[4.4.0, )", - "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.1, )" + "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.3, )" } }, "stryker.abstractions": { @@ -1609,7 +1609,7 @@ "Microsoft.TestPlatform.ObjectModel": "[17.11.1, )", "Serilog": "[4.1.0, )", "Stryker.Utilities": "[4.4.0, )", - "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.1, )" + "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.3, )" } }, "stryker.configuration": { @@ -1923,7 +1923,7 @@ }, "TestableIO.System.IO.Abstractions.Wrappers": { "type": "CentralTransitive", - "requested": "[21.1.1, )", + "requested": "[21.1.3, )", "resolved": "21.1.3", "contentHash": "5LEVwt5+K5TnL1ekfCbQszlgRnO77plpgQAgkXL7wXKGd0PQWE01eSss0+L7E8GGLGbtD7mzYJVq/bd79ZDBlQ==", "dependencies": { diff --git a/src/Stryker.CLI/Stryker.CLI/packages.lock.json b/src/Stryker.CLI/Stryker.CLI/packages.lock.json index fab4805e4..3b9ff0a18 100644 --- a/src/Stryker.CLI/Stryker.CLI/packages.lock.json +++ b/src/Stryker.CLI/Stryker.CLI/packages.lock.json @@ -1383,8 +1383,8 @@ }, "TestableIO.System.IO.Abstractions": { "type": "Transitive", - "resolved": "21.1.1", - "contentHash": "rOpwfPzkMnXEm1tXzCuFAIcB5vEy2WQJ4vZ4ixAHv6UE95ddYeJ6JJh4rg/3fmf+5ewit9Oful6POUjnbOkang==" + "resolved": "21.1.3", + "contentHash": "qe/gIjOPCoyiSCToouJx/vCvcTQXVGj/eJVRK/7s2F8yIv0zvEpjByfXZvS3yqmcpg0/S6x6w7DvNyPrLe/RRw==" }, "stryker": { "type": "Project", @@ -1417,7 +1417,7 @@ "Stryker.DataCollector": "[4.4.0, )", "Stryker.Regex.Parser": "[1.0.0, )", "Stryker.RegexMutators": "[4.4.0, )", - "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.1, )" + "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.3, )" } }, "stryker.abstractions": { @@ -1430,7 +1430,7 @@ "Microsoft.TestPlatform.ObjectModel": "[17.11.1, )", "Serilog": "[4.1.0, )", "Stryker.Utilities": "[4.4.0, )", - "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.1, )" + "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.3, )" } }, "stryker.configuration": { @@ -1720,11 +1720,11 @@ }, "TestableIO.System.IO.Abstractions.Wrappers": { "type": "CentralTransitive", - "requested": "[21.1.1, )", - "resolved": "21.1.1", - "contentHash": "BVymeYb9xqUdffJq9zqVyGglyQDi8QXv+VYUM0Z9Mrfau+rFFGk6GmFhEiCC3TIGOfDSIFWFUPWzxXHXjWmXIQ==", + "requested": "[21.1.3, )", + "resolved": "21.1.3", + "contentHash": "5LEVwt5+K5TnL1ekfCbQszlgRnO77plpgQAgkXL7wXKGd0PQWE01eSss0+L7E8GGLGbtD7mzYJVq/bd79ZDBlQ==", "dependencies": { - "TestableIO.System.IO.Abstractions": "21.1.1" + "TestableIO.System.IO.Abstractions": "21.1.3" } } } diff --git a/src/Stryker.Core/Stryker.Core.UnitTest/TestRunners/VsTestRunnerPoolTests.cs b/src/Stryker.Core/Stryker.Core.UnitTest/TestRunners/VsTestRunnerPoolTests.cs index 597adc62b..f0f0233cd 100644 --- a/src/Stryker.Core/Stryker.Core.UnitTest/TestRunners/VsTestRunnerPoolTests.cs +++ b/src/Stryker.Core/Stryker.Core.UnitTest/TestRunners/VsTestRunnerPoolTests.cs @@ -28,7 +28,7 @@ public class VsTestRunnerPoolTests : VsTestMockingHelper [TestMethod] public void InitializeProperly() { - BuildVsTestRunnerPool(new StrykerOptions(), out var runner); + _ = BuildVsTestRunnerPool(new StrykerOptions(), out var runner); runner.GetTests(SourceProjectInfo).Count.ShouldBe(2); } @@ -71,7 +71,7 @@ public void ShouldComputeTimeoutProperly() Duration = duration }; SetupMockTestRun(mockVsTest, new[] { testResult }); - runner.InitialTest(SourceProjectInfo); + _ = runner.InitialTest(SourceProjectInfo); runner.Context.VsTests[TestCases[0].Id].InitialRunTime.ShouldBe(duration); } @@ -97,7 +97,7 @@ public void ShouldComputeTimeoutProperlyForMultipleResults() Duration = duration }; SetupMockTestRun(mockVsTest, new[] { testResult, otherTestResult }); - runner.InitialTest(SourceProjectInfo); + _ = runner.InitialTest(SourceProjectInfo); runner.Context.VsTests[TestCases[0].Id].InitialRunTime.ShouldBe(duration); } @@ -127,8 +127,8 @@ public void RunTests() [TestMethod] public void DoNotTestWhenNoTestPresent() { - var mockVsTest = BuildVsTestRunnerPool(new StrykerOptions(), out var runner, testCases: new List()); - SetupMockTestRun(mockVsTest, true, new List()); + var mockVsTest = BuildVsTestRunnerPool(new StrykerOptions(), out var runner, testCases: []); + SetupMockTestRun(mockVsTest, true, []); var result = runner.TestMultipleMutants(SourceProjectInfo, null, new[] { Mutant }, null); // tests are successful => run should be successful result.ExecutedTests.IsEmpty.ShouldBeTrue(); @@ -140,8 +140,8 @@ public void DoNotTestWhenNoTestPresent() public void HandleWhenNoTestAreFound() { var mockVsTest = BuildVsTestRunnerPool(new StrykerOptions(), out var runner, TestCases); - SetupMockTestRun(mockVsTest, true, new List()); - var result = runner.TestMultipleMutants(SourceProjectInfo, null, new[] { Mutant }, null); + SetupMockTestRun(mockVsTest, true, []); + var result = runner.TestMultipleMutants(SourceProjectInfo, Mock.Of(c => c.DefaultTimeout == -10000), new[] { Mutant }, null); // tests are successful => run should be successful result.ExecutedTests.IsEmpty.ShouldBeTrue(); } @@ -151,7 +151,7 @@ public void RecycleRunnerOnError() { var mockVsTest = BuildVsTestRunnerPool(new StrykerOptions(), out var runner); SetupFailingTestRun(mockVsTest); - runner.TestMultipleMutants(SourceProjectInfo, null, new[] { Mutant }, null); + _ = runner.TestMultipleMutants(SourceProjectInfo, null, new[] { Mutant }, null); // the test will always end in a crash, VsTestRunner should retry at least a few times mockVsTest.Verify(m => m.RunTestsWithCustomTestHost(It.IsAny>(), It.IsAny(), It.IsAny(), @@ -197,7 +197,7 @@ public void ShouldRetryFrozenSession() VsTestRunner.VsTestExtraTimeOutInMs = 100; // the test session will freeze twice SetupFrozenTestRun(mockVsTest, 2); - runner.TestMultipleMutants(SourceProjectInfo, new TimeoutValueCalculator(0, 10, 9), new[] { Mutant }, null); + _ = runner.TestMultipleMutants(SourceProjectInfo, new TimeoutValueCalculator(0, 10, 9), new[] { Mutant }, null); VsTestRunner.VsTestExtraTimeOutInMs = defaultTimeOut; mockVsTest.Verify(m => m.RunTestsWithCustomTestHost(It.IsAny>(), It.IsAny(), It.IsAny(), @@ -214,7 +214,7 @@ public void ShouldNotRetryFrozenVsTest() // it will be recycled SetupFrozenVsTest(mockVsTest, 3); VsTestRunner.VsTestExtraTimeOutInMs = 100; - runner.TestMultipleMutants(SourceProjectInfo, new TimeoutValueCalculator(0, 10, 9), new[] { Mutant }, null); + _ = runner.TestMultipleMutants(SourceProjectInfo, new TimeoutValueCalculator(0, 10, 9), new[] { Mutant }, null); VsTestRunner.VsTestExtraTimeOutInMs = defaultTimeOut; mockVsTest.Verify(m => m.EndSession(), Times.Exactly(2)); } @@ -345,7 +345,7 @@ public void RunTestsSimultaneouslyWhenPossible() SetupMockCoverageRun(mockVsTest, new Dictionary { ["T0"] = "0;", ["T1"] = "1;" }); tester.GetCoverage(); SetupMockPartialTestRun(mockVsTest, new Dictionary { ["0,1"] = "T0=S,T1=F" }); - tester.Test(project.ProjectContents.Mutants.Where(x => !x.CoveringTests.IsEmpty)); + _ = tester.Test(project.ProjectContents.Mutants.Where(x => !x.CoveringTests.IsEmpty)); Mutant.ResultStatus.ShouldBe(MutantStatus.Survived); OtherMutant.ResultStatus.ShouldBe(MutantStatus.Killed); @@ -365,11 +365,11 @@ public void ShouldThrowWhenTestingMultipleMutantsWithoutCoverageAnalysis() var myTestCases = TestCases.ToList(); myTestCases.Add(BuildCase("T2")); myTestCases.Add(BuildCase("T3")); - BuildVsTestRunnerPool(options, out var runner, myTestCases); + _ = BuildVsTestRunnerPool(options, out var runner, myTestCases); var testFunc = () => runner.TestMultipleMutants(SourceProjectInfo, new TimeoutValueCalculator(0), mutants, null); - testFunc.ShouldThrow(typeof(GeneralStrykerException)); + _ = testFunc.ShouldThrow(typeof(GeneralStrykerException)); } [TestMethod] @@ -515,7 +515,7 @@ public void HandleUnexpectedTestCase() var mockVsTest = BuildVsTestRunnerPool(options, out var runner); // assume 2 results for T0 SetupMockTestRun(mockVsTest, new[] { ("T0", true), ("T1", true), ("T2", true) }); - runner.InitialTest(SourceProjectInfo); + _ = runner.InitialTest(SourceProjectInfo); runner.Context.Tests.Count.ShouldBe(3); } @@ -570,7 +570,7 @@ public void MarkSuspiciousCoverageInPresenceOfFailedTests() var mockVsTest = BuildVsTestRunnerPool(options, out var runner); SetupMockTestRun(mockVsTest, new[] { ("T0", true), ("T1", false), ("T2", true) }); - runner.InitialTest(SourceProjectInfo); + _ = runner.InitialTest(SourceProjectInfo); SetupMockCoverageRun(mockVsTest, new Dictionary { ["T0"] = "0;|1", ["T1"] = ";" }); diff --git a/src/Stryker.Core/Stryker.Core.UnitTest/packages.lock.json b/src/Stryker.Core/Stryker.Core.UnitTest/packages.lock.json index cf6239ecf..6eb9c6ed9 100644 --- a/src/Stryker.Core/Stryker.Core.UnitTest/packages.lock.json +++ b/src/Stryker.Core/Stryker.Core.UnitTest/packages.lock.json @@ -1566,7 +1566,7 @@ "Stryker.DataCollector": "[4.4.0, )", "Stryker.Regex.Parser": "[1.0.0, )", "Stryker.RegexMutators": "[4.4.0, )", - "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.1, )" + "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.3, )" } }, "stryker.abstractions": { @@ -1579,7 +1579,7 @@ "Microsoft.TestPlatform.ObjectModel": "[17.11.1, )", "Serilog": "[4.1.0, )", "Stryker.Utilities": "[4.4.0, )", - "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.1, )" + "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.3, )" } }, "stryker.configuration": { @@ -1866,7 +1866,7 @@ }, "TestableIO.System.IO.Abstractions.Wrappers": { "type": "CentralTransitive", - "requested": "[21.1.1, )", + "requested": "[21.1.3, )", "resolved": "21.1.3", "contentHash": "5LEVwt5+K5TnL1ekfCbQszlgRnO77plpgQAgkXL7wXKGd0PQWE01eSss0+L7E8GGLGbtD7mzYJVq/bd79ZDBlQ==", "dependencies": { diff --git a/src/Stryker.Core/Stryker.Core/packages.lock.json b/src/Stryker.Core/Stryker.Core/packages.lock.json index 209edd9b7..a42d13edf 100644 --- a/src/Stryker.Core/Stryker.Core/packages.lock.json +++ b/src/Stryker.Core/Stryker.Core/packages.lock.json @@ -257,11 +257,11 @@ }, "TestableIO.System.IO.Abstractions.Wrappers": { "type": "Direct", - "requested": "[21.1.1, )", - "resolved": "21.1.1", - "contentHash": "BVymeYb9xqUdffJq9zqVyGglyQDi8QXv+VYUM0Z9Mrfau+rFFGk6GmFhEiCC3TIGOfDSIFWFUPWzxXHXjWmXIQ==", + "requested": "[21.1.3, )", + "resolved": "21.1.3", + "contentHash": "5LEVwt5+K5TnL1ekfCbQszlgRnO77plpgQAgkXL7wXKGd0PQWE01eSss0+L7E8GGLGbtD7mzYJVq/bd79ZDBlQ==", "dependencies": { - "TestableIO.System.IO.Abstractions": "21.1.1" + "TestableIO.System.IO.Abstractions": "21.1.3" } }, "Azure.Core": { @@ -1554,8 +1554,8 @@ }, "TestableIO.System.IO.Abstractions": { "type": "Transitive", - "resolved": "21.1.1", - "contentHash": "rOpwfPzkMnXEm1tXzCuFAIcB5vEy2WQJ4vZ4ixAHv6UE95ddYeJ6JJh4rg/3fmf+5ewit9Oful6POUjnbOkang==" + "resolved": "21.1.3", + "contentHash": "qe/gIjOPCoyiSCToouJx/vCvcTQXVGj/eJVRK/7s2F8yIv0zvEpjByfXZvS3yqmcpg0/S6x6w7DvNyPrLe/RRw==" }, "stryker.abstractions": { "type": "Project", @@ -1567,7 +1567,7 @@ "Microsoft.TestPlatform.ObjectModel": "[17.11.1, )", "Serilog": "[4.1.0, )", "Stryker.Utilities": "[4.4.0, )", - "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.1, )" + "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.3, )" } }, "stryker.configuration": { diff --git a/src/Stryker.Options/packages.lock.json b/src/Stryker.Options/packages.lock.json index b440a96d6..dea200180 100644 --- a/src/Stryker.Options/packages.lock.json +++ b/src/Stryker.Options/packages.lock.json @@ -1175,8 +1175,8 @@ }, "TestableIO.System.IO.Abstractions": { "type": "Transitive", - "resolved": "21.1.1", - "contentHash": "rOpwfPzkMnXEm1tXzCuFAIcB5vEy2WQJ4vZ4ixAHv6UE95ddYeJ6JJh4rg/3fmf+5ewit9Oful6POUjnbOkang==" + "resolved": "21.1.3", + "contentHash": "qe/gIjOPCoyiSCToouJx/vCvcTQXVGj/eJVRK/7s2F8yIv0zvEpjByfXZvS3yqmcpg0/S6x6w7DvNyPrLe/RRw==" }, "stryker.abstractions": { "type": "Project", @@ -1188,7 +1188,7 @@ "Microsoft.TestPlatform.ObjectModel": "[17.11.1, )", "Serilog": "[4.1.0, )", "Stryker.Utilities": "[4.4.0, )", - "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.1, )" + "TestableIO.System.IO.Abstractions.Wrappers": "[21.1.3, )" } }, "stryker.utilities": { @@ -1304,11 +1304,11 @@ }, "TestableIO.System.IO.Abstractions.Wrappers": { "type": "CentralTransitive", - "requested": "[21.1.1, )", - "resolved": "21.1.1", - "contentHash": "BVymeYb9xqUdffJq9zqVyGglyQDi8QXv+VYUM0Z9Mrfau+rFFGk6GmFhEiCC3TIGOfDSIFWFUPWzxXHXjWmXIQ==", + "requested": "[21.1.3, )", + "resolved": "21.1.3", + "contentHash": "5LEVwt5+K5TnL1ekfCbQszlgRnO77plpgQAgkXL7wXKGd0PQWE01eSss0+L7E8GGLGbtD7mzYJVq/bd79ZDBlQ==", "dependencies": { - "TestableIO.System.IO.Abstractions": "21.1.1" + "TestableIO.System.IO.Abstractions": "21.1.3" } } }