Measure spec suite require time

This commit is contained in:
Nathan Sobo 2013-03-15 09:09:56 -06:00
parent fc7eaf57fc
commit 875fbba024

View File

@ -1,12 +1,15 @@
fs = require 'fs-utils'
require 'spec-helper'
require 'window'
# Run core specs
for path in fs.listTree(fs.resolveOnLoadPath("spec")) when /-spec\.coffee$/.test path
require path
measure 'spec suite require time', ->
fs = require 'fs-utils'
require 'spec-helper'
# Run extension specs
for packageDirPath in config.packageDirPaths
for packagePath in fs.list(packageDirPath)
for path in fs.listTree(fs.join(packagePath, "spec")) when /-spec\.coffee$/.test path
require path
# Run core specs
for path in fs.listTree(fs.resolveOnLoadPath("spec")) when /-spec\.coffee$/.test path
require path
# Run extension specs
for packageDirPath in config.packageDirPaths
for packagePath in fs.list(packageDirPath)
for path in fs.listTree(fs.join(packagePath, "spec")) when /-spec\.coffee$/.test path
require path