Open maxowell opened 1 year ago
I wouldn't call 922 source files and 24529 mutants moderately sized 🙊 The entire code base of Stryker only has 7.7k mutants
Since Stryker seems to crash right after generating the mutants, I expect the memory problem to be in the main process of Stryker, not in any of the worker processes.
Could you try disabling disableTypeChecks
:
{
"disableTypeChecks": false
}
With disableTypeChecks, Stryker pulls all project files into memory (all 6004 of them). It does so right after instrumentation, so it seems like it could be the culprit.
You're probably right, I graduated not long ago and this is one of the first projects I've been working on. So, to me, this is an "average" size 🥲
Your suggestion seems to be what caused the problem! The mutation tests are now running, there seems to be some more problems but those appear to be from my configuration, I believe I can fix them on my own.
I'm not sure if this is an intended feature or not, but in any case thank you for your support! :)
You're welcome!
Yeah, pulling all of them into memory is needed to be able to disable type checking (we need to parse them using the typescript parser), but they don't need to stay in-memory.
Let's improve that using this issue
Summary
Allocation failed - JavaScript heap out of memory
during mutation testing on moderately sized projet.concurrency
settingI have consulted these similar issues, without being able to solve my problem :
Stryker config
Test runner config
Stryker environment
Test runner environment
Your Environment
Add stryker.log