Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d11384fc08
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.612 kb
task 'spec', 'run the test suite', (options) ->
jasmine = require 'jasmine-node'
sys = require 'sys'
path = require 'path'
specFolder = path.join __dirname, 'spec'
extensions = "js|coffee"
isVerbose = false
showColors = true
jasmine.loadHelpersInFolder specFolder, new RegExp("[-_]helper\\.(" + extensions + ")$")
jasmine.executeSpecsInFolder(specFolder, ((runner, log) ->
sys.print('\n')
if (runner.results().failedCount == 0)
process.exit(0)
else
process.exit(1)
), isVerbose, showColors, new RegExp(".spec\\.(" + extensions + ")$", 'i'))
Jump to Line
Something went wrong with that request. Please try again.