Tidy up which tests run on which OS

This commit is contained in:
Damien Guard
2016-11-22 15:18:47 -08:00
parent 440e708e40
commit a18adfee58

View File

@@ -93,11 +93,15 @@ function runBenchmarkTests (callback) {
cp.on('close', exitCode => { callback(null, exitCode) })
}
let testSuitesToRun
if (process.platform === 'darwin') {
testSuitesToRun = [runCoreMainProcessTests, runCoreRenderProcessTests, runBenchmarkTests].concat(packageTestSuites)
} else {
testSuitesToRun = [runCoreMainProcessTests]
let testSuitesToRun = testSuitesForPlatform(process.platform)
function testSuitesForPlatform(platform) {
switch(platform) {
case 'darwin': return [runCoreMainProcessTests, runCoreRenderProcessTests, runBenchmarkTests].concat(packageTestSuites)
case 'win32': return [runCoreMainProcessTests, runCoreRenderProcessTests]
case 'linux': return [runCoreMainProcessTests]
default: return []
}
}
async.series(testSuitesToRun, function (err, exitCodes) {