Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
Corrected reported to return the correct number of specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Bunsch committed Apr 17, 2011
1 parent 1fa1fe7 commit d1dec81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/jessie/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ exports.reporter.prototype.reportSuiteResults = function(suite) {
// Additionally, call the finish callback of present
exports.reporter.prototype.reportRunnerResults = function(runner) {
var results = runner.results();
var suites = runner.suites();
var result = {
failures: this.extractFailures(runner),
total: results.totalCount
}
result.total = 0
suites.forEach(function(suite) {
result.total += suite.specs().length
});
result.duration = (Number(new Date) - this.start_time)
result.failed = result.failures.length

Expand Down

0 comments on commit d1dec81

Please sign in to comment.