diff --git a/spec/suites/TrivialNodeReporterSpec.js b/spec/suites/TrivialNodeReporterSpec.js index 359d5bd..7c42ce7 100644 --- a/spec/suites/TrivialNodeReporterSpec.js +++ b/spec/suites/TrivialNodeReporterSpec.js @@ -106,6 +106,51 @@ describe("TrivialNodeReporter", function() { }); }); + describe('A suite runs', function(){ + it("remembers suite results", function(){ + var emptyResults = function(){return {items_:[]};}; + this.reporter.reportSuiteResults({description:"Oven", results:emptyResults}) + this.reporter.reportSuiteResults({description:"Mixer", results:emptyResults}) + + var self = this + var descriptions = [] + for(var i=0; i 0 && spec.description) suiteResult.failedSpecResults.push(spec) + }); + + this.suiteResults.push(suiteResult) + }; + this.reportRunnerResults = function(runner) { var elapsed = this.now() - this.runnerStartTime;