var Application = require('spectron').Application var assert = require('assert') describe('application launch', function () { this.timeout(10000) beforeEach(function () { this.app = new Application({ path: '/Applications/MyApp.app/Contents/MacOS/MyApp' // あるいは electron-prebuilt の実行ファイルを指定し、`args` にソースコードのパスを与える }) return this.app.start() }) afterEach(function () { if (this.app && this.app.isRunnin