This function in ConsoleReporter seems points to a stack property to save it in the failed results:
function eachSpecFailure(suiteResults, callback) {
for (var i = 0; i < suiteResults.length; i++) {
var suiteResult = suiteResults[i];
for (var j = 0; j < suiteResult.failedSpecResults.length; j++) {
var failedSpecResult = suiteResult.failedSpecResults[j];
var stackTraces = [];
// THIS LINE,
for (var k = 0; k < failedSpecResult.items_.length; k++) stackTraces.push(failedSpecResult.items_[k].trace.stack);
callback(suiteResult.description, failedSpecResult.description, stackTraces);
}
}
}
But if I stringify that whole object, I only see this { ..., trace: { message: "Expected 0 to be 1" } }
It seems that line in the function above, should be storing the message too so it can print it out later. Also, why is there no stack? Should there be?
--Renier