File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public class xunit : MSBuildTask, ICancelableTask
20
20
XunitFilters filters ;
21
21
IRunnerLogger logger ;
22
22
int ? maxThreadCount ;
23
+ ParallelAlgorithm ? parallelAlgorithm ;
23
24
bool ? parallelizeAssemblies ;
24
25
bool ? parallelizeTestCollections ;
25
26
IMessageSinkWithTypes reporterMessageHandler ;
@@ -75,6 +76,8 @@ protected bool NeedsXml
75
76
76
77
public ITaskItem NUnit { get ; set ; }
77
78
79
+ public ParallelAlgorithm ParallelAlgorithm { set { parallelAlgorithm = value ; } }
80
+
78
81
public bool ParallelizeAssemblies { set { parallelizeAssemblies = value ; } }
79
82
80
83
public bool ParallelizeTestCollections { set { parallelizeTestCollections = value ; } }
@@ -277,6 +280,8 @@ protected virtual XElement ExecuteAssembly(XunitProjectAssembly assembly, AppDom
277
280
var executionOptions = TestFrameworkOptions . ForExecution ( assembly . Configuration ) ;
278
281
if ( maxThreadCount . HasValue && maxThreadCount . Value > - 1 )
279
282
executionOptions . SetMaxParallelThreads ( maxThreadCount ) ;
28
524C
3
+ if ( parallelAlgorithm . HasValue )
284
+ executionOptions . SetParallelAlgorithm ( parallelAlgorithm ) ;
280
285
if ( parallelizeTestCollections . HasValue )
281
286
executionOptions . SetDisableParallelization ( ! parallelizeTestCollections ) ;
282
287
if ( stopOnFail . HasValue )
You can’t perform that action at this time.
0 commit comments