Sha256: 28badc242709a666b3ae586a8494cee12dd08a4956dc3573a886f2ac1dcd1128

Contents?: true

Size: 888 Bytes

Versions: 1

Compression:

Stored size: 888 Bytes

Contents

require.paths.unshift('./lib', './spec');
process.mixin(require('sys'))

require("jspec")
require("unit/helpers")

quit = process.exit
print = puts

readFile = function(path) {
  var promise = require('posix').cat(path, "utf8")
  var result = ''
  promise.addErrback(function(){ throw new Error("failed to read file `" + path + "'") })
  promise.addCallback(function(contents){
    result = contents
  })
  promise.wait()
  return result
}

JSpec
.exec('spec/unit/spec.js')
.exec('spec/unit/spec.utils.js')
.exec('spec/unit/spec.modules.js')
.exec('spec/unit/spec.matchers.js')
.exec('spec/unit/spec.shared-behaviors.js')
.exec('spec/unit/spec.grammar.js')
.exec('spec/unit/spec.grammar-less.js')
//.exec('spec/unit/spec.fixtures.js') TODO: when exceptions bubble properly uncomment
.run({ reporter: JSpec.reporters.Terminal, failuresOnly: true, fixturePath: 'spec/fixtures' })
.report()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jspec-3.0.0 spec/node.js