mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Run specs from all package directory paths
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
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 packagePath in fs.listTree(require.resolve("src/packages"))
|
||||
for path in fs.listTree(fs.join(packagePath, "spec")) when /-spec\.coffee$/.test path
|
||||
require path
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user