spec.node.js
This file
Path
spec/spec.node.js
29 lines · 773 bytes · JavaScript
Last changed by
Simplified the test runnercsausdevbefore adoption29fbb44
History of this fileTake it
Simplified the test runnercsausdevbefore adoption29fbb44
line 1why, one step back1require.paths.unshift("../jspec-2.11.2/lib", "./lib");got the tests to run, but not passcsausdevbefore adoption8b34960
line 2why, one step back2process.mixin(GLOBAL, require("sys"))Added node.js JSpec testing supportvisionmediabefore adoption2852524
line 3why, one step back3Simplified the test runnercsausdevbefore adoption29fbb44
lines 4–8why, one step back4require("jspec")5require("express")6require("express.mocks")78var posix = require("posix");Added node.js JSpec testing supportvisionmediabefore adoption2852524
line 9why, one step back9readFile = function(path, callback) {got the tests to run, but not passcsausdevbefore adoption8b34960
line 10why, one step back10 var promise = posix.cat(path, "utf8")Added node.js JSpec testing supportvisionmediabefore adoption2852524
lines 11–12why, one step back11 promise.addErrback(function(){ throw "failed to read file `" + path + "'" })12 promise.addCallback(function(contents){Simplified the test runnercsausdevbefore adoption29fbb44
line 13why, one step back13 callback(contents)Added node.js JSpec testing supportvisionmediabefore adoption2852524
line 14why, one step back14 })Simplified the test runnercsausdevbefore adoption29fbb44
line 15why, one step back15 promise.wait()Added node.js JSpec testing supportvisionmediabefore adoption2852524
lines 16–17why, one step back16}17Simplified the test runnercsausdevbefore adoption29fbb44
line 18why, one step back18JSpecAdded node.js JSpec testing supportvisionmediabefore adoption2852524
lines 19–20why, one step back19 .exec('spec/spec.core.js')20 .exec('spec/spec.routing.js')Misc module progressvisionmediabefore adoption15839de
line 21why, one step back21 .exec('spec/spec.mocks.js')Module specsvisionmediabefore adoption03f8d7a
line 22why, one step back22 .exec('spec/spec.modules.js')Added node.js JSpec testing supportvisionmediabefore adoption2852524
line 23why, one step back23 .exec('spec/spec.mime.js')Misc module progressvisionmediabefore adoption15839de
line 24why, one step back24 .exec('spec/spec.cookie.js')Miscvisionmediabefore adoption448a6d6
line 25why, one step back25 .exec('spec/spec.session.js')Added node.js JSpec testing supportvisionmediabefore adoption2852524
line 26why, one step back26 .exec('spec/spec.view.js')Simplified the test runnercsausdevbefore adoption29fbb44
lines 27–28why, one step back27JSpec.run({ formatter : JSpec.formatters.Terminal, failuresOnly : true })28JSpec.report()Added node.js JSpec testing supportvisionmediabefore adoption2852524
line 29why, one step back29