Skip to content

Instantly share code, notes, and snippets.

@ryanstevens
Created November 4, 2011 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanstevens/1338955 to your computer and use it in GitHub Desktop.
Save ryanstevens/1338955 to your computer and use it in GitHub Desktop.
Testling runtime test eror (error in my test file)
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)
@ryanstevens
Copy link
Author

--- 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

Copy link

ghost commented Nov 4, 2011

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