javascript - Karma runner console - output only failed tests -


this default output of karma test runner (with 1 failed test):

. ..   ... e 28.0 (windows): executed 413 of 421 (1 failed) e 28.0 (windows): executed 414 of 421 (1 failed) e 28.0 (windows): executed 415 of 421 (1 failed) e 28.0 (windows): executed 416 of 421 (1 failed) e 28.0 (windows): executed 417 of 421 (1 failed) e 28.0 (windows): executed 418 of 421 (1 failed) e 28.0 (windows): executed 419 of 421 (1 failed) e 28.0 (windows): executed 420 of 421 (1 failed) e 28.0 (windows): executed 421 of 421 (1 failed) e 28.0 (windows): executed 421 of 421 (1 failed) (1.74 secs / 1.091 secs) 

i don't fact 1 have scroll way test failed see exception. might annoying on time question whether possible somehow change output tests failed reported in console?

so in case of 1 failed test prefer output similar this:

chrome 28.0 (windows) failedtest should printed console failed     referenceerror: not defined         @ null.<anonymous> (c:/superproject/src/test/failedtest.js:10:10) chrome 28.0 (windows): executed 71 of 421 (1 failed) 

instead of output above.

looking @ http://karma-runner.github.io/0.10/config/configuration-file.html

have tried setting config use empty reporters array? karma v0.10 defaults reporters config of ['progress'], causing verbose output.

you might 'dots' reporter. can try on cli using

karma start yourconfig.js  --reporters dots 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -