I digged a little and found the real problem.
Problem occured only when you run with --single-run flag.
Because nyan-reporter used adapterMessages which caused to dump log message not directly to the console, but to the memory and later on to the console. When karma runner ends its work, then it erases not dumped memory content.
To fix that I used direct fs.writeSync instead of adapterMessages.
fix for dgarlitt/karma-nyan-reporter/issues/10
I digged a little and found the real problem. Problem occured only when you run with
--single-run
flag. Because nyan-reporter usedadapterMessages
which caused to dump log message not directly to the console, but to the memory and later on to the console. When karma runner ends its work, then it erases not dumped memory content. To fix that I used directfs.writeSync
instead ofadapterMessages
.Fixed tests as well.
Some references to this problem from other karma reporters: https://github.com/karma-runner/karma-teamcity-reporter/issues/5