Description
when running official demo ,app launch, but Error reporting:

Follow is codes
var Application = require('spectron').Application var assert = require('assert')
describe('application launch', function () { this.timeout(10000)//程序启动的延时
beforeEach(function () {//mocha的钩子函数,类似testNG的注解,想了解更多,自行百度 this.app = new Application({ path: '/Applications/RCETEST.app/Contents/MacOS/RCETEST'//写你测试需要的桌面版程序路径,如:'C:/Program Files (x86)/GF-Global/yourApp.exe' }) return this.app.start() })
afterEach(function () { if (this.app && this.app.isRunning()) { return this.app.stop() } })
it('shows an initial window', function () { return this.app.client.getWindowCount().then(function (count) { assert.equal(count, 1) }) }) })
Who can help me with any questions? Thank you