Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
716 bytes
|
Line | |
---|
1 | const { red, yellow, green, cyan } = require('colors/safe')
|
---|
2 |
|
---|
3 | function BaseColorReporter () {
|
---|
4 | this.USE_COLORS = true
|
---|
5 |
|
---|
6 | this.LOG_SINGLE_BROWSER = '%s: ' + cyan('%s') + '\n'
|
---|
7 | this.LOG_MULTI_BROWSER = '%s %s: ' + cyan('%s') + '\n'
|
---|
8 |
|
---|
9 | this.SPEC_FAILURE = red('%s %s FAILED') + '\n'
|
---|
10 | this.SPEC_SLOW = yellow('%s SLOW %s: %s') + '\n'
|
---|
11 | this.ERROR = red('%s ERROR') + '\n'
|
---|
12 |
|
---|
13 | this.FINISHED_ERROR = red(' ERROR')
|
---|
14 | this.FINISHED_SUCCESS = green(' SUCCESS')
|
---|
15 | this.FINISHED_DISCONNECTED = red(' DISCONNECTED')
|
---|
16 |
|
---|
17 | this.X_FAILED = red(' (%d FAILED)')
|
---|
18 |
|
---|
19 | this.TOTAL_SUCCESS = green('TOTAL: %d SUCCESS') + '\n'
|
---|
20 | this.TOTAL_FAILED = red('TOTAL: %d FAILED, %d SUCCESS') + '\n'
|
---|
21 | }
|
---|
22 |
|
---|
23 | // PUBLISH
|
---|
24 | module.exports = BaseColorReporter
|
---|
Note:
See
TracBrowser
for help on using the repository browser.