Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
<PackageVersion Include="Microsoft.TestPlatform.ObjectModel" Version="17.14.1" />
<PackageVersion Include="Microsoft.TestPlatform.Portable" Version="17.14.1" />
<PackageVersion Include="Microsoft.TestPlatform.TranslationLayer" Version="17.14.1" />
<PackageVersion Include="Microsoft.Testing.Platform" Version="1.5.0" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="1.5.0" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.Wrappers" Version="22.0.16" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="9.0.9" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.9" />
Expand Down
1 change: 1 addition & 0 deletions src/Stryker.Abstractions/Options/IStrykerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public interface IStrykerOptions
string TargetFramework { get; init; }
string TestCaseFilter { get; init; }
IEnumerable<string> TestProjects { get; init; }
Testing.TestRunner TestRunner { get; init; }
IThresholds Thresholds { get; init; }
bool WithBaseline { get; init; }
string WorkingDirectory { get; init; }
Expand Down
19 changes: 19 additions & 0 deletions src/Stryker.Abstractions/Testing/TestRunner.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace Stryker.Abstractions.Testing;

/// <summary>
/// Specifies the test runner to use for running tests
/// </summary>
public enum TestRunner
{
/// <summary>
/// Use Visual Studio Test Platform (VSTest). This is the default and currently the only fully supported option.
/// </summary>
VsTest = 0,

/// <summary>
/// Use Microsoft Testing Platform (MTP). This is currently under development and not yet fully supported.
/// When specified, Stryker will attempt to use the new Microsoft Testing Platform for test execution.
/// Note: This option is experimental and may not work with all test frameworks or scenarios.
/// </summary>
MicrosoftTestingPlatform = 1
}
99 changes: 67 additions & 32 deletions src/Stryker.CLI/Stryker.CLI.UnitTest/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,6 @@
"Microsoft.Testing.Platform": "1.9.0"
}
},
"Microsoft.Testing.Extensions.TrxReport": {
"type": "Transitive",
"resolved": "1.9.0",
"contentHash": "/hcQOJ9Ktrz/nA90kUpN9mwZ4eWfiZLfO64Jq08Etf8YbidLtZFb3Xs/3v1amxAZ4nrTbQpmwr9X/aTs4LRBhQ==",
"dependencies": {
"Microsoft.Testing.Extensions.TrxReport.Abstractions": "1.9.0",
"Microsoft.Testing.Platform": "1.9.0"
}
},
"Microsoft.Testing.Extensions.TrxReport.Abstractions": {
"type": "Transitive",
"resolved": "1.9.0",
Expand All @@ -314,11 +305,6 @@
"Microsoft.Testing.Platform": "1.9.0"
}
},
"Microsoft.Testing.Platform": {
"type": "Transitive",
"resolved": "1.9.0",
"contentHash": "OE79Vc5rXwFYciAPY/mqv92XvdhK+pvCHdVHcS0bBpWwWQbnzI18FiSEEYY+lYpB0HHl0fDQgcCK3ZTYKGs8bA=="
},
"Microsoft.Testing.Platform.MSBuild": {
"type": "Transitive",
"resolved": "1.9.0",
Expand Down Expand Up @@ -591,6 +577,11 @@
"resolved": "8.0.0",
"contentHash": "ne1843evDugl0md7Fjzy6QjJrzsjh46ZKbhf8GwBXb5f/gw97J4bxMs0NQKifDuThh/f0bZ0e62NPl1jzTuRqA=="
},
"System.IO.Pipelines": {
"type": "Transitive",
"resolved": "9.0.9",
"contentHash": "VySjpsCLprojvat550Flrm3NQB982CPuDzILajqjQihFmrQXZPdQyktIbcpVPJyaExFYtAfY1DpwMdWQuS0kbw=="
},
"System.Management": {
"type": "Transitive",
"resolved": "6.0.1",
Expand Down Expand Up @@ -813,13 +804,17 @@
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "6.0.1",
"contentHash": "E5M5AE2OUTlCrf4omZvzzziUJO9CofBl+lXHaN5IKePPJvHqYFYYpaDPgCpR4VwaFbEebfnjOxxEBtPtsqAxpQ=="
"resolved": "9.0.9",
"contentHash": "bzYTmAcmfelUOCBxvbgsfSr2tq94ydA2gJZAxZRcuNa0LlmlVz8JNHst6RG1qsDujyVYT4vjv06y8sCLbvCXdg=="
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "6.0.11",
"contentHash": "xqC1HIbJMBFhrpYs76oYP+NAskNVjc6v73HqLal7ECRDPIp4oRU5pPavkD//vNactCn9DA2aaald/I5N+uZ5/g=="
"resolved": "9.0.9",
"contentHash": "NEnpppwq67fRz/OvQRxsEMgetDJsxlxpEsAFO/4PZYbAyAMd4Ol6KS7phc8uDoKPsnbdzRLKobpX303uQwCqdg==",
"dependencies": {
"System.IO.Pipelines": "9.0.9",
"System.Text.Encodings.Web": "9.0.9"
}
},
"System.Threading": {
"type": "Transitive",
Expand Down Expand Up @@ -898,13 +893,15 @@
"Serilog.Sinks.Console": "[6.0.0, )",
"ShellProgressBar": "[5.2.0, )",
"Spectre.Console": "[0.51.1, )",
"Stryker.Abstractions": "[4.8.1, )",
"Stryker.Configuration": "[4.8.1, )",
"Stryker.DataCollector": "[4.8.1, )",
"Stryker.Abstractions": "[1.0.0, )",
"Stryker.Configuration": "[1.0.0, )",
"Stryker.DataCollector": "[1.0.0, )",
"Stryker.Regex.Parser": "[1.0.0, )",
"Stryker.RegexMutators": "[4.8.1, )",
"Stryker.TestRunner.VsTest": "[4.8.1, )",
"Stryker.Utilities": "[4.8.1, )",
"Stryker.RegexMutators": "[1.0.0, )",
"Stryker.TestRunner": "[1.0.0, )",
"Stryker.TestRunner.MTP": "[1.0.0, )",
"Stryker.TestRunner.VsTest": "[1.0.0, )",
"Stryker.Utilities": "[1.0.0, )",
"TestableIO.System.IO.Abstractions.Wrappers": "[22.0.16, )"
}
},
Expand All @@ -927,8 +924,8 @@
"Microsoft.CodeAnalysis.CSharp": "[4.14.0, )",
"Microsoft.CodeAnalysis.Common": "[4.14.0, )",
"Serilog": "[4.3.0, )",
"Stryker.Abstractions": "[4.8.1, )",
"Stryker.Utilities": "[4.8.1, )"
"Stryker.Abstractions": "[1.0.0, )",
"Stryker.Utilities": "[1.0.0, )"
}
},
"stryker.datacollector": {
Expand All @@ -948,7 +945,20 @@
"type": "Project",
"dependencies": {
"Microsoft.TestPlatform.ObjectModel": "[17.14.1, )",
"Stryker.Abstractions": "[4.8.1, )"
"Stryker.Abstractions": "[1.0.0, )",
"TestableIO.System.IO.Abstractions.Wrappers": "[22.0.16, )"
}
},
"stryker.testrunner.mtp": {
"type": "Project",
"dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "[9.0.9, )",
"Microsoft.Testing.Extensions.TrxReport": "[1.5.0, )",
"Microsoft.Testing.Platform": "[1.5.0, )",
"Stryker.Abstractions": "[1.0.0, )",
"Stryker.TestRunner": "[1.0.0, )",
"Stryker.Utilities": "[1.0.0, )",
"System.Net.Http.Json": "[9.0.9, )"
}
},
"stryker.testrunner.vstest": {
Expand All @@ -959,10 +969,10 @@
"Microsoft.TestPlatform.ObjectModel": "[17.14.1, )",
"Microsoft.TestPlatform.Portable": "[17.14.1, )",
"Microsoft.TestPlatform.TranslationLayer": "[17.14.1, )",
"Stryker.Abstractions": "[4.8.1, )",
"Stryker.DataCollector": "[4.8.1, )",
"Stryker.TestRunner": "[4.8.1, )",
"Stryker.Utilities": "[4.8.1, )",
"Stryker.Abstractions": "[1.0.0, )",
"Stryker.DataCollector": "[1.0.0, )",
"Stryker.TestRunner": "[1.0.0, )",
"Stryker.Utilities": "[1.0.0, )",
"TestableIO.System.IO.Abstractions.Wrappers": "[22.0.16, )"
}
},
Expand All @@ -975,7 +985,7 @@
"Microsoft.Extensions.Logging.Abstractions": "[9.0.9, )",
"Mono.Cecil": "[0.11.6, )",
"ResXResourceReader.NetStandard": "[1.3.0, )",
"Stryker.Abstractions": "[4.8.1, )"
"Stryker.Abstractions": "[1.0.0, )"
}
},
"Azure.Storage.Files.Shares": {
Expand Down Expand Up @@ -1087,6 +1097,22 @@
"System.Diagnostics.DiagnosticSource": "9.0.9"
}
},
"Microsoft.Testing.Extensions.TrxReport": {
"type": "CentralTransitive",
"requested": "[1.5.0, )",
"resolved": "1.9.0",
"contentHash": "/hcQOJ9Ktrz/nA90kUpN9mwZ4eWfiZLfO64Jq08Etf8YbidLtZFb3Xs/3v1amxAZ4nrTbQpmwr9X/aTs4LRBhQ==",
"dependencies": {
"Microsoft.Testing.Extensions.TrxReport.Abstractions": "1.9.0",
"Microsoft.Testing.Platform": "1.9.0"
}
},
"Microsoft.Testing.Platform": {
"type": "CentralTransitive",
"requested": "[1.5.0, )",
"resolved": "1.9.0",
"contentHash": "OE79Vc5rXwFYciAPY/mqv92XvdhK+pvCHdVHcS0bBpWwWQbnzI18FiSEEYY+lYpB0HHl0fDQgcCK3ZTYKGs8bA=="
},
"Microsoft.TestPlatform": {
"type": "CentralTransitive",
"requested": "[17.14.1, )",
Expand Down Expand Up @@ -1221,6 +1247,15 @@
"resolved": "1.0.0",
"contentHash": "39OYYkvF2KlMbhxLBM+GTJEzPLu0HfN1v4AOApDFt3+ivd5F8HXwV5yp2A2+i7a7F5Tv2zr/7faCIqZj9c7x4g=="
},
"System.Net.Http.Json": {
"type": "CentralTransitive",
"requested": "[9.0.9, )",
"resolved": "9.0.9",
"contentHash": "Plss2+D6djmOMTkx/TbJ6vuz1bHjrhMXSj5DsjeWgK0PMRFPuc1Jo0TlFtgzbP3tMlG5U6Q+xB6ZwtMKRe1Ppw==",
"dependencies": {
"System.Text.Json": "9.0.9"
}
},
"TestableIO.System.IO.Abstractions.Wrappers": {
"type": "CentralTransitive",
"requested": "[22.0.16, )",
Expand Down
101 changes: 73 additions & 28 deletions src/Stryker.CLI/Stryker.CLI/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@
"resolved": "1.1.0",
"contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg=="
},
"Microsoft.Testing.Extensions.TrxReport.Abstractions": {
"type": "Transitive",
"resolved": "1.5.0",
"contentHash": "3vMXWbqqy3rSXYlPshR7CPqG0bgGDOhasyhVtqhAOy2tMED6VKU/IbKNMUmEuqgPNjMkCaicDTfNdXsrJPKcsw==",
"dependencies": {
"Microsoft.Testing.Platform": "1.5.0"
}
},
"MSBuild.StructuredLogger": {
"type": "Transitive",
"resolved": "2.2.158",
Expand Down Expand Up @@ -399,6 +407,11 @@
"resolved": "8.0.0",
"contentHash": "ne1843evDugl0md7Fjzy6QjJrzsjh46ZKbhf8GwBXb5f/gw97J4bxMs0NQKifDuThh/f0bZ0e62NPl1jzTuRqA=="
},
"System.IO.Pipelines": {
"type": "Transitive",
"resolved": "9.0.9",
"contentHash": "VySjpsCLprojvat550Flrm3NQB982CPuDzILajqjQihFmrQXZPdQyktIbcpVPJyaExFYtAfY1DpwMdWQuS0kbw=="
},
"System.Memory.Data": {
"type": "Transitive",
"resolved": "6.0.0",
Expand Down Expand Up @@ -488,11 +501,6 @@
"Microsoft.NETCore.Targets": "1.1.0"
}
},
"System.Runtime.CompilerServices.Unsafe": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg=="
},
"System.Runtime.Extensions": {
"type": "Transitive",
"resolved": "4.1.0",
Expand Down Expand Up @@ -608,19 +616,16 @@
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
"resolved": "9.0.9",
"contentHash": "bzYTmAcmfelUOCBxvbgsfSr2tq94ydA2gJZAxZRcuNa0LlmlVz8JNHst6RG1qsDujyVYT4vjv06y8sCLbvCXdg=="
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "6.0.10",
"contentHash": "NSB0kDipxn2ychp88NXWfFRFlmi1bst/xynOutbnpEfRCT9JZkZ7KOmF/I/hNKo2dILiMGnqblm+j1sggdLB9g==",
"resolved": "9.0.9",
"contentHash": "NEnpppwq67fRz/OvQRxsEMgetDJsxlxpEsAFO/4PZYbAyAMd4Ol6KS7phc8uDoKPsnbdzRLKobpX303uQwCqdg==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
"System.Text.Encodings.Web": "6.0.0"
"System.IO.Pipelines": "9.0.9",
"System.Text.Encodings.Web": "9.0.9"
}
},
"System.Threading": {
Expand Down Expand Up @@ -691,13 +696,15 @@
"Serilog.Sinks.Console": "[6.0.0, )",
"ShellProgressBar": "[5.2.0, )",
"Spectre.Console": "[0.51.1, )",
"Stryker.Abstractions": "[4.8.1, )",
"Stryker.Configuration": "[4.8.1, )",
"Stryker.DataCollector": "[4.8.1, )",
"Stryker.Abstractions": "[1.0.0, )",
"Stryker.Configuration": "[1.0.0, )",
"Stryker.DataCollector": "[1.0.0, )",
"Stryker.Regex.Parser": "[1.0.0, )",
"Stryker.RegexMutators": "[4.8.1, )",
"Stryker.TestRunner.VsTest": "[4.8.1, )",
"Stryker.Utilities": "[4.8.1, )",
"Stryker.RegexMutators": "[1.0.0, )",
"Stryker.TestRunner": "[1.0.0, )",
"Stryker.TestRunner.MTP": "[1.0.0, )",
"Stryker.TestRunner.VsTest": "[1.0.0, )",
"Stryker.Utilities": "[1.0.0, )",
"TestableIO.System.IO.Abstractions.Wrappers": "[22.0.16, )"
}
},
Expand All @@ -720,8 +727,8 @@
"Microsoft.CodeAnalysis.CSharp": "[4.14.0, )",
"Microsoft.CodeAnalysis.Common": "[4.14.0, )",
"Serilog": "[4.3.0, )",
"Stryker.Abstractions": "[4.8.1, )",
"Stryker.Utilities": "[4.8.1, )"
"Stryker.Abstractions": "[1.0.0, )",
"Stryker.Utilities": "[1.0.0, )"
}
},
"stryker.datacollector": {
Expand All @@ -741,7 +748,20 @@
"type": "Project",
"dependencies": {
"Microsoft.TestPlatform.ObjectModel": "[17.14.1, )",
"Stryker.Abstractions": "[4.8.1, )"
"Stryker.Abstractions": "[1.0.0, )",
"TestableIO.System.IO.Abstractions.Wrappers": "[22.0.16, )"
}
},
"stryker.testrunner.mtp": {
"type": "Project",
"dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "[9.0.9, )",
"Microsoft.Testing.Extensions.TrxReport": "[1.5.0, )",
"Microsoft.Testing.Platform": "[1.5.0, )",
"Stryker.Abstractions": "[1.0.0, )",
"Stryker.TestRunner": "[1.0.0, )",
"Stryker.Utilities": "[1.0.0, )",
"System.Net.Http.Json": "[9.0.9, )"
}
},
"stryker.testrunner.vstest": {
Expand All @@ -752,10 +772,10 @@
"Microsoft.TestPlatform.ObjectModel": "[17.14.1, )",
"Microsoft.TestPlatform.Portable": "[17.14.1, )",
"Microsoft.TestPlatform.TranslationLayer": "[17.14.1, )",
"Stryker.Abstractions": "[4.8.1, )",
"Stryker.DataCollector": "[4.8.1, )",
"Stryker.TestRunner": "[4.8.1, )",
"Stryker.Utilities": "[4.8.1, )",
"Stryker.Abstractions": "[1.0.0, )",
"Stryker.DataCollector": "[1.0.0, )",
"Stryker.TestRunner": "[1.0.0, )",
"Stryker.Utilities": "[1.0.0, )",
"TestableIO.System.IO.Abstractions.Wrappers": "[22.0.16, )"
}
},
Expand All @@ -768,7 +788,7 @@
"Microsoft.Extensions.Logging.Abstractions": "[9.0.9, )",
"Mono.Cecil": "[0.11.6, )",
"ResXResourceReader.NetStandard": "[1.3.0, )",
"Stryker.Abstractions": "[4.8.1, )"
"Stryker.Abstractions": "[1.0.0, )"
}
},
"Azure.Storage.Files.Shares": {
Expand Down Expand Up @@ -871,6 +891,22 @@
"System.Diagnostics.DiagnosticSource": "9.0.9"
}
},
"Microsoft.Testing.Extensions.TrxReport": {
"type": "CentralTransitive",
"requested": "[1.5.0, )",
"resolved": "1.5.0",
"contentHash": "+AW10NEScLAiErRKzek5U1Kv0B337EktcLt6ruzJXFTbtdQgK+3j0jxWbnfSs1N+R1eX2AsNF9/en7hWW8DDfg==",
"dependencies": {
"Microsoft.Testing.Extensions.TrxReport.Abstractions": "1.5.0",
"Microsoft.Testing.Platform": "1.5.0"
}
},
"Microsoft.Testing.Platform": {
"type": "CentralTransitive",
"requested": "[1.5.0, )",
"resolved": "1.5.0",
"contentHash": "L6MsgthfCEuqx4Z3VWmUzilFN4I4hrRIXY0UgGTP9sv9upt1V9m5x9m7fWUKRrnzoE8yTFeRxw1KaI9XmXIzRA=="
},
"Microsoft.TestPlatform": {
"type": "CentralTransitive",
"requested": "[17.14.1, )",
Expand Down Expand Up @@ -987,6 +1023,15 @@
"resolved": "1.0.0",
"contentHash": "39OYYkvF2KlMbhxLBM+GTJEzPLu0HfN1v4AOApDFt3+ivd5F8HXwV5yp2A2+i7a7F5Tv2zr/7faCIqZj9c7x4g=="
},
"System.Net.Http.Json": {
"type": "CentralTransitive",
"requested": "[9.0.9, )",
"resolved": "9.0.9",
"contentHash": "Plss2+D6djmOMTkx/TbJ6vuz1bHjrhMXSj5DsjeWgK0PMRFPuc1Jo0TlFtgzbP3tMlG5U6Q+xB6ZwtMKRe1Ppw==",
"dependencies": {
"System.Text.Json": "9.0.9"
}
},
"TestableIO.System.IO.Abstractions.Wrappers": {
"type": "CentralTransitive",
"requested": "[22.0.16, )",
Expand Down
Loading
Loading