mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
23 lines
653 B
JavaScript
Executable File
23 lines
653 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
'use strict'
|
|
|
|
require('colors')
|
|
|
|
const path = require('path')
|
|
const childProcess = require('child_process')
|
|
const CONFIG = require('./config')
|
|
|
|
const packagedAppPath = path.resolve(__dirname, '..', 'out', 'Atom-darwin-x64')
|
|
const executablePath = path.join(packagedAppPath, 'Atom.app', 'Contents', 'MacOS', 'Atom')
|
|
|
|
const resourcePath = CONFIG.repositoryRootPath
|
|
const testPath = path.join(CONFIG.repositoryRootPath, 'spec')
|
|
const testArguments = [
|
|
'--resource-path', resourcePath,
|
|
'--test', testPath
|
|
]
|
|
|
|
console.log('Executing core specs...'.bold.green)
|
|
childProcess.spawnSync(executablePath, testArguments, {stdio: 'inherit'})
|