developit / karmatic

🦑 Easy automatic (headless) browser testing with Jest's API, but powered by Karma & Webpack.
https://npm.im/karmatic
1.17k stars 42 forks source link

Shorten console output if in watch mode #44

Closed marvinhagemeister closed 4 years ago

marvinhagemeister commented 4 years ago

When there are lots of tests it becomes annoying to have to scroll over the ever growing test name list. They're usually printed in this format:

LOG: foo
LOG: bar

  demo
    ✓ should work
    ✓ should handle deep equality
[...300+ lines of successful tests]
[...300+ lines of successful tests]
[...300+ lines of successful tests]

Executed 306 of 306 SUCCESS (0.102 secs / 0.12 secs)

With this PR we're switching to a more minimal reporter which only prints the test summary:

LOG: foo
LOG: bar

  306 passed (199ms)

Executed 306 of 306 SUCCESS (0.102 secs / 0.12 secs)