Karma tests report quick start, but actually work slower

This is best explained by the video (or see gif below):

execution example

You will notice that the Karma progress reporter reports that the tests take milliseconds, but this obviously takes a lot of time ...

I tweeted about it and was told to

Try opening the debug page and open devtools to generate timings that should show you where the slowdown occurs.

So here is a video of this . I'm not sure what they mean by "generate timings ..."

Sometimes my karma tests run very fast, as I expected (and, as reported). Sometimes it works very slowly, but it says that it works in milliseconds. This can happen even if I use describe.onlyfor a small number of tests (but again, not all the time). I think this happens more often the longer the tests work for me (observer).

I use angular , webpack , es6 (with babel ), karma , mocha , chai and sinon .

I notice that even if I create my tests without the karma-webpack plugin and then run the karma on the result, I still see this problem (so I don’t think it is a karma-webpack plugin).

- ( ...). angular-formly, . ( 2 . 30 . ).

, , , , ?

+4
1

: , . Chrome.

. , , Chrome (, ?)... Firefox.

, , Firefox.

, Chrome , , , .

+2

All Articles