tmcgee123/karma-spec-reporter

Windows encoding issue for success and failure symbols

Francisc opened this issue · 3 comments

Hello,

Is there any config to change the success / failure symbol?

This is how it looks in a capable (MinGW) Windows console.
ss

Echo!

mlex commented

You can change the symbols with the specReporter.prefixes.[success|failure|skipped] config option. Just add the following to your karma.conf.js:

specReporter : {
        prefixes : {
            success: 'O ',
            failure: 'X ',
            skipped: '_ '
        }
  }

Please make sure, that you add all three symbols. Otherwise, the reporter will crash with a cannot read ... of undefined error.

Should have seen that, thank you.