Restore package specs in suite. Didn't mean to commit these comments.

This commit is contained in:
Nathan Sobo 2013-12-10 01:30:15 -08:00
parent c326988a7d
commit 43495f05ba

View File

@ -29,24 +29,24 @@ runAllSpecs = ->
requireSpecs(path.join(resourcePath, 'spec'))
setSpecType('core')
# fixturesPackagesPath = path.join(__dirname, 'fixtures', 'packages')
# packagePaths = atom.packages.getAvailablePackageNames().map (packageName) ->
# atom.packages.resolvePackagePath(packageName)
# packagePaths = _.groupBy packagePaths, (packagePath) ->
# if packagePath.indexOf("#{fixturesPackagesPath}#{path.sep}") is 0
# 'fixtures'
# else if packagePath.indexOf("#{resourcePath}#{path.sep}") is 0
# 'bundled'
# else
# 'user'
#
# # Run bundled package specs
# requireSpecs(path.join(packagePath, 'spec')) for packagePath in packagePaths.bundled ? []
# setSpecType('bundled')
#
# # Run user package specs
# requireSpecs(path.join(packagePath, 'spec')) for packagePath in packagePaths.user ? []
# setSpecType('user')
fixturesPackagesPath = path.join(__dirname, 'fixtures', 'packages')
packagePaths = atom.packages.getAvailablePackageNames().map (packageName) ->
atom.packages.resolvePackagePath(packageName)
packagePaths = _.groupBy packagePaths, (packagePath) ->
if packagePath.indexOf("#{fixturesPackagesPath}#{path.sep}") is 0
'fixtures'
else if packagePath.indexOf("#{resourcePath}#{path.sep}") is 0
'bundled'
else
'user'
# Run bundled package specs
requireSpecs(path.join(packagePath, 'spec')) for packagePath in packagePaths.bundled ? []
setSpecType('bundled')
# Run user package specs
requireSpecs(path.join(packagePath, 'spec')) for packagePath in packagePaths.user ? []
setSpecType('user')
if specDirectory = atom.getLoadSettings().specDirectory
requireSpecs(specDirectory)