mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
17 lines
550 B
CoffeeScript
17 lines
550 B
CoffeeScript
require 'window'
|
|
|
|
measure 'spec suite require time', ->
|
|
fsUtils = require 'fs-utils'
|
|
path = require 'path'
|
|
require 'spec-helper'
|
|
|
|
# Run core specs
|
|
for specPath in fsUtils.listTreeSync(fsUtils.resolveOnLoadPath("spec")) when /-spec\.coffee$/.test specPath
|
|
require specPath
|
|
|
|
# Run extension specs
|
|
for packageDirPath in config.packageDirPaths
|
|
for packagePath in fsUtils.listSync(packageDirPath)
|
|
for specPath in fsUtils.listTreeSync(path.join(packagePath, "spec")) when /-spec\.coffee$/.test specPath
|
|
require specPath
|