@@ -16,6 +16,7 @@ public class RunSettings
16
16
public TestMethodDisplay ? MethodDisplay { get ; set ; }
17
17
public TestMethodDisplayOptions ? MethodDisplayOptions { get ; set ; }
18
18
public bool ? NoAutoReporters { get ; set ; }
19
+ public ParallelAlgorithm ? ParallelAlgorithm { get ; set ; }
19
20
public bool ? ParallelizeAssembly { get ; set ; }
20
21
public bool ? ParallelizeTestCollections { get ; set ; }
21
22
public bool ? PreEnumerateTheories { get ; set ; }
@@ -42,6 +43,8 @@ public void CopyTo(TestAssemblyConfiguration configuration)
42
43
configuration . MethodDisplay = MethodDisplay ;
43
44
if ( MethodDisplayOptions . HasValue )
44
45
configuration . MethodDisplayOptions = MethodDisplayOptions ;
46
+ if ( ParallelAlgorithm . HasValue )
47
+ configuration . ParallelAlgorithm = ParallelAlgorithm ;
45
48
if ( ParallelizeAssembly . HasValue )
46
49
configuration . ParallelizeAssembly = ParallelizeAssembly ;
47
50
if ( ParallelizeTestCollections . HasValue )
@@ -106,6 +109,10 @@ public static RunSettings Parse(string? settingsXml)
106
109
if ( bool . TryParse ( noAutoReportersString , out var noAutoReporters ) )
107
110
result . NoAutoReporters = noAutoReporters ;
108
111
112
+ var parallelAlgorithmString = xunitElement . Element ( Constants . Xunit . ParallelAlgorithm ) ? . Value ;
113
+ if ( Enum . TryParse < ParallelAlgorithm > ( parallelAlgorithmString , ignoreCase : true , out var parallelAlgorithm ) )
114
+ result . ParallelAlgorithm = parallelAlgorithm ;
115
+
109
116
var parallelizeAssemblyString = xunitElement . Element ( Constants . Xunit . ParallelizeAssembly ) ? . Value ;
110
117
if ( bool . TryParse ( parallelizeAssemblyString , out var parallelizeAssembly ) )
111
118
result . ParallelizeAssembly = parallelizeAssembly ;
@@ -209,6 +216,7 @@ public static class Xunit
209
216
public const string MethodDisplay = "MethodDisplay" ;
210
217
public const string MethodDisplayOptions = "MethodDisplayOptions" ;
211
218
public const string NoAutoReporters = "NoAutoReporters" ;
219
+ public const string ParallelAlgorithm = "ParallelAlgorithm" ;
212
220
public const string ParallelizeAssembly = "ParallelizeAssembly" ;
213
221
public const string ParallelizeTestCollections = "ParallelizeTestCollections" ;
214
222
public const string PreEnumerateTheories = "PreEnumerateTheories" ;
0 commit comments