jasmine.TrivialConsoleReporter = function(print, doneCallback) { //inspired by mhevery's jasmine-node reporter //https://github.com/mhevery/jasmine-node doneCallback = doneCallback || function(){}; var defaultColumnsPerLine = 50, ansi = { green: '\033[32m', red: '\033[31m', yellow: '\033[33m', none: '\033[0m' }, language = { spec:"spec", expectation:"expectation", failure:"failure" }; function coloredStr(color, str) { return ansi[color] + str + ansi.none; } function greenStr(str) { return coloredStr("green", str); } function redStr(str) { return coloredStr("red", str); } function yellowStr(str) { return coloredStr("yellow", str); } function newline() { print("\n"); } function started() { print("Started"); newline(); } function greenDot() { print(greenStr(".")); } function redF() { print(redStr("F")); } function yellowStar() { print(yellowStr("*")); } function plural(str, count) { return count == 1 ? str : str + "s"; } function repeat(thing, times) { var arr = []; for(var i=0; i 0 && spec.description) suiteResult.failedSpecResults.push(spec); }); this.suiteResults.push(suiteResult); }; function eachSpecFailure(suiteResults, callback) { for(var i=0; i