@@ -16,6 +16,7 @@ public class RunSettings
1616 public TestMethodDisplay ? MethodDisplay { get ; set ; }
1717 public TestMethodDisplayOptions ? MethodDisplayOptions { get ; set ; }
1818 public bool ? NoAutoReporters { get ; set ; }
19+ public ParallelAlgorithm ? ParallelAlgorithm { get ; set ; }
1920 public bool ? ParallelizeAssembly { get ; set ; }
2021 public bool ? ParallelizeTestCollections { get ; set ; }
2122 public bool ? PreEnumerateTheories { get ; set ; }
@@ -42,6 +43,8 @@ public void CopyTo(TestAssemblyConfiguration configuration)
4243 configuration . MethodDisplay = MethodDisplay ;
4344 if ( MethodDisplayOptions . HasValue )
4445 configuration . MethodDisplayOptions = MethodDisplayOptions ;
46+ if ( ParallelAlgorithm . HasValue )
47+ configuration . ParallelAlgorithm = ParallelAlgorithm ;
4548 if ( ParallelizeAssembly . HasValue )
4649 configuration . ParallelizeAssembly = ParallelizeAssembly ;
4750 if ( ParallelizeTestCollections . HasValue )
@@ -106,6 +109,10 @@ public static RunSettings Parse(string? settingsXml)
106109 if ( bool . TryParse ( noAutoReportersString , out var noAutoReporters ) )
107110 result . NoAutoReporters = noAutoReporters ;
108111
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+
109116 var parallelizeAssemblyString = xunitElement . Element ( Constants . Xunit . ParallelizeAssembly ) ? . Value ;
110117 if ( bool . TryParse ( parallelizeAssemblyString , out var parallelizeAssembly ) )
111118 result . ParallelizeAssembly = parallelizeAssembly ;
@@ -209,6 +216,7 @@ public static class Xunit
209216 public const string MethodDisplay = "MethodDisplay" ;
210217 public const string MethodDisplayOptions = "MethodDisplayOptions" ;
211218 public const string NoAutoReporters = "NoAutoReporters" ;
219+ public const string ParallelAlgorithm = "ParallelAlgorithm" ;
212220 public const string ParallelizeAssembly = "ParallelizeAssembly" ;
213221 public const string ParallelizeTestCollections = "ParallelizeTestCollections" ;
214222 public const string PreEnumerateTheories = "PreEnumerateTheories" ;
0 commit comments