2013-11-28 18:01:58 +04:00
|
|
|
# Start the crash reporter before anything else.
|
|
|
|
require('crash-reporter').start(productName: 'Atom', companyName: 'GitHub')
|
|
|
|
|
2013-03-27 01:19:45 +04:00
|
|
|
try
|
2013-09-18 05:58:41 +04:00
|
|
|
require '../src/window'
|
2013-09-26 21:13:16 +04:00
|
|
|
Atom = require '../src/atom'
|
2013-12-12 08:37:52 +04:00
|
|
|
window.atom = Atom.loadOrCreate('spec')
|
2013-10-03 03:47:27 +04:00
|
|
|
window.atom.show() unless atom.getLoadSettings().exitWhenDone
|
2013-09-18 01:54:33 +04:00
|
|
|
{runSpecSuite} = require './jasmine-helper'
|
2012-08-28 02:36:36 +04:00
|
|
|
|
2013-03-27 01:19:45 +04:00
|
|
|
document.title = "Spec Suite"
|
2013-12-18 04:31:13 +04:00
|
|
|
runSpecSuite './spec-suite', atom.getLoadSettings().logFile
|
2013-10-03 02:48:58 +04:00
|
|
|
catch error
|
2013-10-16 05:57:12 +04:00
|
|
|
if atom?.getLoadSettings().exitWhenDone
|
2013-10-18 02:38:47 +04:00
|
|
|
console.error(error.stack ? error)
|
2013-10-16 05:57:12 +04:00
|
|
|
atom.exit(1)
|
|
|
|
else
|
|
|
|
throw error
|