1 var BaseReporter = require('./base')
3 var DotsReporter = function (formatError, reportSlow) {
4 BaseReporter.call(this, formatError, reportSlow)
8 this.onRunStart = function () {
13 this.onBrowserStart = function (browser) {
14 this._browsers.push(browser)
17 this.writeCommonMsg = function (msg) {
18 if (this._dotsCount) {
27 this.specSuccess = function () {
28 this._dotsCount = (this._dotsCount + 1) % DOTS_WRAP
29 this.write(this._dotsCount ? '.' : '.\n')
32 this.onBrowserComplete = function (browser) {
33 this.writeCommonMsg(this.renderBrowser(browser) + '\n')
36 this.onRunComplete = function (browsers, results) {
37 if (browsers.length > 1 && !results.disconnected && !results.error) {
38 if (!results.failed) {
39 this.write(this.TOTAL_SUCCESS, results.success)
41 this.write(this.TOTAL_FAILED, results.failed, results.success)
48 module.exports = DotsReporter