dgarlitt / karma-nyan-reporter

Nyan Cat style reporter based on the Mocha version
MIT License
169 stars 19 forks source link

fix for dgarlitt/karma-nyan-reporter/issues/10 #12

Closed yhnavein closed 9 years ago

yhnavein commented 9 years ago

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 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.

Fixed tests as well.

Some references to this problem from other karma reporters: https://github.com/karma-runner/karma-teamcity-reporter/issues/5