pulsar/spec/spec-suite.coffee

16 lines
493 B
CoffeeScript
Raw Normal View History

2013-03-15 19:09:56 +04:00
require 'window'
2013-03-15 19:09:56 +04:00
measure 'spec suite require time', ->
fsUtils = require 'fs-utils'
2013-03-15 19:09:56 +04:00
require 'spec-helper'
2013-03-15 19:09:56 +04:00
# Run core specs
for path in fsUtils.listTree(fsUtils.resolveOnLoadPath("spec")) when /-spec\.coffee$/.test path
2013-03-15 19:09:56 +04:00
require path
# Run extension specs
for packageDirPath in config.packageDirPaths
for packagePath in fsUtils.list(packageDirPath)
for path in fsUtils.listTree(fsUtils.join(packagePath, "spec")) when /-spec\.coffee$/.test path
2013-03-15 19:09:56 +04:00
require path