Run main process tests on Windows

This commit is contained in:
Antonio Scandurra
2016-09-09 12:07:03 +02:00
parent 6841babc4a
commit 924ca8ecf6
4 changed files with 17 additions and 3 deletions

View File

@@ -22,6 +22,12 @@ if (process.platform === 'darwin') {
const executablePaths = glob.sync(path.join(CONFIG.buildOutputPath, '**', 'atom'))
assert(executablePaths.length === 1, `More than one application to run tests against was found. ${executablePaths.join(',')}`)
executablePath = executablePaths[0]
} else if (process.platform === 'win32') {
const executablePaths = glob.sync(path.join(CONFIG.buildOutputPath, '**', 'atom.exe'))
assert(executablePaths.length === 1, `More than one application to run tests against was found. ${executablePaths.join(',')}`)
executablePath = executablePaths[0]
} else {
throw new Error('Running tests on this platform is not supported.')
}
function runCoreMainProcessTests (callback) {