mirror of
https://github.com/atom/atom.git
synced 2026-01-25 23:08:18 -05:00
Run tests after the application is ready
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user