   jasmineEnv = jasmine.getEnv()
   jasmineEnv.addReporter(reporter)
 
-  specRootPath = 'spec/'
-  if global.loadSettings.resourcePath
-    specRootPath = path.resolve(global.loadSettings.resourcePath, specRootPath)
   for specFilePath in fs.listTreeSync(specRootPath) when /-spec\.(coffee|js)$/.test specFilePath
     require specFilePath
 

  require '../vendor/jasmine/lib/jasmine-2.1.3/jasmine-html'
  require '../vendor/jasmine/lib/jasmine-2.1.3/boot'

  specRootPath = 'spec/'
  if global.loadSettings.resourcePath
    specRootPath = path.resolve(global.loadSettings.resourcePath, specRootPath)
  for specFilePath in fs.listTreeSync(specRootPath) when /-spec\.(coffee|js)$/.test specFilePath
    require specFilePath



# Start the crash reporter before anything else.
require('crash-reporter').start(productName: @pkgJson.name, companyName: 'atom-shell-starter')
specRootPath = path.resolve(global.loadSettings.resourcePath, 'spec/')

if global.loadSettings.exitWhenDone
  jasmineFn = require 'jasmine'
