Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Run package tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Scandurra committed Jun 5, 2019
1 parent 9d2494c commit 0fdb013
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions script/test
Expand Up @@ -203,8 +203,10 @@ function testSuitesForPlatform (platform) {
case 'darwin':
if (process.env.ATOM_RUN_CORE_TESTS === 'true') {
suites = [runCoreMainProcessTests, runCoreRenderProcessTests]
} else if (process.env.ATOM_RUN_PACKAGE_TESTS === 'true') {
suites = packageTestSuites
} else if (process.env.ATOM_RUN_PACKAGE_TESTS === '1') {
suites = packageTestSuites.slice(0, Math.round(packageTestSuites.length / 2))
} else if (process.env.ATOM_RUN_PACKAGE_TESTS === '2') {
suites = packageTestSuites.slice(Math.round(packageTestSuites.length / 2))
} else {
suites = [runCoreMainProcessTests, runCoreRenderProcessTests].concat(packageTestSuites)
}
Expand Down
9 changes: 6 additions & 3 deletions script/vsts/platforms/macos.yml
Expand Up @@ -97,14 +97,17 @@ jobs:
pool:
vmImage: macos-10.13
strategy:
maxParallel: 2
maxParallel: 3
matrix:
core:
RunCoreTests: true
RunPackageTests: false
packages:
packages_1:
RunCoreTests: false
RunPackageTests: true
RunPackageTests: 1
packages_2:
RunCoreTests: false
RunPackageTests: 2

steps:
- task: NodeTool@0
Expand Down

0 comments on commit 0fdb013

Please sign in to comment.