Skip to content
Myr

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 file

Take it

Simplified the test runnercsausdevbefore adoption29fbb44

line 1why, one step back
1require.paths.unshift("../jspec-2.11.2/lib", "./lib");

got the tests to run, but not passcsausdevbefore adoption8b34960

line 2why, one step back
2process.mixin(GLOBAL, require("sys"))

Added node.js JSpec testing supportvisionmediabefore adoption2852524

line 3why, one step back
3

Simplified the test runnercsausdevbefore adoption29fbb44

lines 4–8why, one step back
4require("jspec")
5require("express")6require("express.mocks")78var posix = require("posix");

Added node.js JSpec testing supportvisionmediabefore adoption2852524

line 9why, one step back
9readFile = function(path, callback) {

got the tests to run, but not passcsausdevbefore adoption8b34960

line 10why, one step back
10 var promise = posix.cat(path, "utf8")

Added node.js JSpec testing supportvisionmediabefore adoption2852524

lines 11–12why, one step back
11 promise.addErrback(function(){ throw "failed to read file `" + path + "'" })
12 promise.addCallback(function(contents){

Simplified the test runnercsausdevbefore adoption29fbb44

line 13why, one step back
13 callback(contents)

Added node.js JSpec testing supportvisionmediabefore adoption2852524

line 14why, one step back
14 })

Simplified the test runnercsausdevbefore adoption29fbb44

line 15why, one step back
15 promise.wait()

Added node.js JSpec testing supportvisionmediabefore adoption2852524

lines 16–17why, one step back
16}
17

Simplified the test runnercsausdevbefore adoption29fbb44

line 18why, one step back
18JSpec

Added node.js JSpec testing supportvisionmediabefore adoption2852524

lines 19–20why, one step back
19 .exec('spec/spec.core.js')
20 .exec('spec/spec.routing.js')

Misc module progressvisionmediabefore adoption15839de

line 21why, one step back
21 .exec('spec/spec.mocks.js')

Module specsvisionmediabefore adoption03f8d7a

line 22why, one step back
22 .exec('spec/spec.modules.js')

Added node.js JSpec testing supportvisionmediabefore adoption2852524

line 23why, one step back
23 .exec('spec/spec.mime.js')

Misc module progressvisionmediabefore adoption15839de

line 24why, one step back
24 .exec('spec/spec.cookie.js')

Miscvisionmediabefore adoption448a6d6

line 25why, one step back
25 .exec('spec/spec.session.js')

Added node.js JSpec testing supportvisionmediabefore adoption2852524

line 26why, one step back
26 .exec('spec/spec.view.js')

Simplified the test runnercsausdevbefore adoption29fbb44

lines 27–28why, one step back
27JSpec.run({ formatter : JSpec.formatters.Terminal, failuresOnly : true })
28JSpec.report()

Added node.js JSpec testing supportvisionmediabefore adoption2852524

line 29why, one step back
29