Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running UTs on a large lib with a large number of tests causes too much recursion in IE8 #1581

Open
JamesSeymour opened this issue Nov 11, 2015 · 0 comments

Comments

@JamesSeymour
Copy link

We are having some issues running UTs one of our large libs in IE8 (around 250 tests with around 30 test files).

It starts running the tests and then throws a stack overflow exception after a few seconds. After debugging into where the stack overflow exception occurs it would seem its due to too many levels of recursion.

This recursion seems to be happening in the JsTestDriver js files which are within the jar which makes it difficult for us to debug. But from what we can see its using a 'pausingRunTestLoop', which runs the tests recursively, and this causes IE8 to run out of stack space.

This seems to run tests not only from the same test file, but multiple test files recursively. I tried hacking the JsTestDriver jar to use the other type of loop, as it seems this isn't configurable anywhere reasonable? But I had the same problem of recursion, with a very similar call stack.

We are using BRJS version 1.0.2-0.g11d152a, with the SDK patched for the import node shim issue (#1527)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants