pulsar/spec/spec-bootstrap.coffee

19 lines
567 B
CoffeeScript
Raw Normal View History

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