mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Measure spec suite require time
This commit is contained in:
parent
fc7eaf57fc
commit
875fbba024
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user