Tests: Disable parallelization for tests with plugins
This commit is contained in:
@@ -25,8 +25,15 @@ gci -Directory $bin | % {
|
|||||||
if (Test-Path $loadOptionsFile -PathType Leaf) {
|
if (Test-Path $loadOptionsFile -PathType Leaf) {
|
||||||
$loadOptions = cat $loadOptionsFile
|
$loadOptions = cat $loadOptionsFile
|
||||||
}
|
}
|
||||||
|
$pluginsPath = "$($_.FullName)\plugins"
|
||||||
|
$attributes = ""
|
||||||
|
if (Test-Path $pluginsPath -PathType Container) {
|
||||||
|
$attributes = "[NonParallelizable]"
|
||||||
|
}
|
||||||
|
|
||||||
echo @"
|
echo @"
|
||||||
[Test]
|
[Test]
|
||||||
|
$attributes
|
||||||
public async Task $($_.Name -Replace '\W','_')() {
|
public async Task $($_.Name -Replace '\W','_')() {
|
||||||
await runTest(@"$($_.FullName)", new LoadOptions { $loadOptions });
|
await runTest(@"$($_.FullName)", new LoadOptions { $loadOptions });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user