Skip to content

Speed up karma runs for development

Simon Knox requested to merge psimyn-speedup-karma into master

What does this MR do?

Make karma tests in watch mode run instantly. Don't include entire app when passing -f flag to karma.

Results

Initial build Rebuild test_bundle Size
baseline 53s 21s 28.5MB
new 16s 3s 2.37MB
improvement 3.3x 7x 12x

test commands

time WEBPACK_REPORT=1 yarn karma -f *dashboard_spec.js	
WEBPACK_REPORT=1 yarn karma-start -f *dashboard_spec.js

other

  • Web IDE tests are ~8MB because of monaco-editor. Still much faster than before

screenshots

before (includes everything):

Screen_Shot_2018-10-02_at_7.06.14_pm

after (includes mainly used):

Screen_Shot_2018-10-02_at_7.03.06_pm

Does this MR meet the acceptance criteria?

Edited by Simon Knox

Merge request reports