javascript - Any tricks for running large (heavy memory-using) Mocha test suites in Internet Explorer? -
my company has built wonderful large (472 , growing) mocha test suite our app, , it's incredibly useful ... in chrome , firefox.
in ie tests break down after 30 or tests, "error: out of stack space". so, question ... have 2 questions, main 1 , back-up:
1) there way ie run whole suite, perhaps tweaking config option somewhere give more memory? know ie sucks @ sort of thing, if firefox , chrome can have hope there's way make ie ...
2) failing that, there way in mocha "run tests 1-25, run tests 26-50, etc.", or have use grep option try limit number of tests run?
guess should have spent bit more time googling before came here. found ticket:
https://github.com/visionmedia/mocha/issues/502
which explains that:
this bug in mocha: they're using sort of mechanism clear stack, mechanism doesn't work in ie need switch other mechanism (and haven't yet, of 4/25/2013).
a (very dirty/hacky, functional) workaround add following
beforeeach
@ root level of test suite (so applies tests):beforeeach(function(done){ window.settimeout(done, 0); });