Run tests after the application is ready

This commit is contained in:
Antonio Scandurra
2016-05-25 10:57:40 +02:00
parent a1a609a357
commit 1817c79a53

View File

@@ -21,7 +21,8 @@ start = ->
return
else if args.test and args.mainProcess
console.log = previousConsoleLog
require(path.join(args.resourcePath, 'spec/browser/mocha-test-runner'))(args.pathsToOpen)
testRunner = require(path.join(args.resourcePath, 'spec/browser/mocha-test-runner'))
app.on 'ready', -> testRunner(args.pathsToOpen)
return
# NB: This prevents Win10 from showing dupe items in the taskbar