Created
November 4, 2011 08:59
-
-
Save ryanstevens/1338955 to your computer and use it in GitHub Desktop.
Testling runtime test eror (error in my test file)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
TypeError: Object function (name, cb) { | |
if (typeof name === 'function') { | |
cb = name; | |
name = undefined; | |
} | |
var t = new Test(name, test.push); | |
pending ++; | |
t.on('testEnd', function () { | |
pending --; | |
process.nextTick(function () { | |
if (pending <= 0) t.push('end', {}); | |
harness.emit('end', t); | |
}); | |
}); | |
cb(t); | |
} has no method 'output' | |
at Function.<anonymous> (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/lib/run.js:19:18) | |
at Function.<anonymous> (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/node_modules/seq/index.js:447:24) | |
at Function.<anonymous> (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/node_modules/seq/index.js:210:38) | |
at action (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/node_modules/seq/index.js:76:11) | |
at Function.next (/Users/ryanstevens/.nvm/v0.4.7/lib/node_modules/testling/node_modules/seq/index.js:208:17) |
All fixed in testling@0.0.1. Silly race condition setting the output plugin was responsible.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--- This one shows what it does when running the cli.js directly
Ryan-Stevenss-MacBook-Pro:bin ryanstevens$ node cli.js ../../../test.js
../../../test.js 0/0 0 % ok
../../../test.js 1/1 100 % ok
TypeError: undefined is not a function
at CALL_NON_FUNCTION_AS_CONSTRUCTOR (native)
at /Users/ryanstevens/Documents/node/FunctionPerf/test.js:8:16
at /Users/ryanstevens/Documents/node/FunctionPerf/node_modules/testling/lib/test.js:26:5