How to get around memory error with karma & phantomjs -


we're running tests using karma , phantomjs last week, our tests mysteriously started crashing phantomjs error of -1073741819.

based on thread chutzpah appears code indicates native memory failure phantomjs.

upon further investigation, consistently seeing phantom crash around 750mb of memory.

is there way configure karma not run against limit? or way tell flush phantom?

we have around 1200 tests far. we're 1/4 of way through our project, 5000 ui tests doesn't seem out of question.

thanks stackoverflow phenomenon of posting question , discovering answer, solved adding gulp tasks. before running karma start @ command line. spun single instance of phantomjs crashed when 750mb reached.

now have gulp command each 1 of our sections of tests, e.g. gulp common-tests , gulp admin-tests , gulp customer-tests

then single gulp karma runs each of groupings. allows each gulp command have own instance of phantom, , therefore stay underneath threshold.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -