Lines Matching refs:Stats
1608 var stats = reporter.stats;
1609 if (stats.failures) {
1610 var msg = stats.failures + ' of ' + runner.total + ' tests failed';
1613 notify(stats.passes + ' tests passed in ' + stats.duration + 'ms', {
2197 * stats such as test duration, number
2206 , stats = this.stats = { suites: 0, tests: 0, passes: 0, pending: 0, failures: 0 }
2212 runner.stats = stats;
2215 stats.start = new Date;
2219 stats.suites = stats.suites || 0;
2220 suite.root || stats.suites++;
2224 stats.tests = stats.tests || 0;
2225 stats.tests++;
2229 stats.passes = stats.passes || 0;
2238 stats.passes++;
2242 stats.failures = stats.failures || 0;
2243 stats.failures++;
2249 stats.end = new Date;
2250 stats.duration = new Date - stats.start;
2254 stats.pending++;
2266 var stats = this.stats;
2278 stats.passes || 0,
2279 ms(stats.duration));
2282 if (stats.pending) {
2286 console.log(fmt, stats.pending);
2290 if (stats.failures) {
2293 console.log(fmt, stats.failures);
2471 , stats = this.stats
2537 , stats = this.stats
2663 * Stats template.
2666 var statsTemplate = '<ul id="mocha-stats">'
2684 , stats = this.stats
2757 // TODO: add to stats
2758 var percent = stats.tests / this.total * 100 | 0;
2761 // update stats
2762 var ms = new Date - stats.start;
2763 text(passes, stats.passes);
2764 text(failures, stats.failures);
2994 result.stats = self.stats;
3129 , stats = this.stats
3147 process.stdout.write(JSON.stringify(['end', self.stats]));
3219 stats: self.stats,
3310 , stats = this.stats
3396 , stats = this.stats
3472 , stats = this.stats
3613 , stats = this.stats
3671 var stats = this.stats;
3679 draw('green', stats.passes);
3680 draw('fail', stats.failures);
3681 draw('pending', stats.pending);
3766 var stats = this.stats;
3767 if (stats.failures) {
3769 } else if (stats.pending) {
3771 } else if(stats.passes) {
3892 , stats = this.stats
3937 // tests are complete, output some stats
3984 , stats = this.stats
4074 , stats = this.stats
4159 var stats = this.stats
4185 , tests: stats.tests
4186 , failures: stats.failures
4187 , errors: stats.failures
4188 , skipped: stats.tests - stats.failures - stats.passes
4190 , time: (stats.duration / 1000) || 0