i'm using Phantomjs combined with grunt and jasmine to run unit tests for AngularJs application. I'm experiencing strange behavior when the Unit tests become too many. In my case 754/755 unit tests. The unit tests run fail with the following message
Running PhantomJS...ERROR
0 [ '' ] Warning: PhantomJS exited unexpectedly with exit code 3221225477. Use --force to continue.
Aborted due to warnings.
When i comment out some old tests, so their number become less then 754/755 everything works just fine. When the tests becomes too many(more then 754/755) this error appears. I believe it could be something it the memory allocation of the PhantomJS, but i couldn't find anything connected to this error code - 3221225477 and i couldn't be sure. I haven't find any solution about it only the workaround with commenting unit tests. The problem occurs on Windows 7 machine, the same test build works on MacOs without problem, no matter how many unit tests are there, so it is also connected with the OS.
I would appreciate any help suggestions about it, Thanks!
I believe PhantomJS has run out of memory.