File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
- <#
2
- . SYNOPSIS
3
- Distribute the tests in VSTS pipeline across multiple agents
4
- . DESCRIPTION
1
+ <#
2
+ . SYNOPSIS
3
+ Distribute the tests in VSTS pipeline across multiple agents
4
+ . DESCRIPTION
5
5
This script divides test files across multiple agents for running on Azure DevOps.
6
- It is adapted from the script in this repository:
6
+ It is adapted from the script in this repository:
7
7
https://github.com/PBoraMSFT/ParallelTestingSample-Python/blob/master/DistributeTests.ps1
8
8
9
9
The distribution is basically identical to the way we do it in .travis.yaml
@@ -63,10 +63,12 @@ elseif ($agentNumber -eq 5) {
63
63
}
64
64
elseif ($agentNumber -eq 6 ) {
65
65
$testsToRun = $testsToRun + " tests/test_experiment_rsmxval.py"
66
+ $testsToRun = $testsToRun + " tests/test_experiment_rsmexplain.py"
67
+ $testsToRun = $testsToRun + " tests/test_explanation_utils.py"
66
68
}
67
69
68
70
# join all test files seperated by space. pytest runs multiple test files in following format pytest test1.py test2.py test3.py
69
71
$testFiles = $testsToRun -Join " "
70
72
Write-Host " Test files $testFiles "
71
- # write these files into variable so that we can run them using pytest in subsequent task.
72
- Write-Host " ##vso[task.setvariable variable=pytestfiles;]$testFiles "
73
+ # write these files into variable so that we can run them using pytest in subsequent task.
74
+ Write-Host " ##vso[task.setvariable variable=pytestfiles;]$testFiles "
You can’t perform that action at this time.
0 commit comments