pulsar/spec/spec-suite.coffee
2013-01-10 15:31:18 -08:00

14 lines
381 B
CoffeeScript

fs = require 'fs'
require 'spec-helper'
# Run core specs
for path in fs.listTree(require.resolve("spec")) when /-spec\.coffee$/.test path
require path
# Run extension specs
for packageDirPath in config.packageDirPaths
for packagePath in fs.listTree(packageDirPath)
for path in fs.listTree(fs.join(packagePath, "spec")) when /-spec\.coffee$/.test path
require path