Hello together,
I have followed the tutorial for a first simple unit test and got the following error while compiling:
[INFORMATION] co♻e - a unittest framework for codesys, 1.2.0.0 (www.co5e.org): GVL_coUnit(line 33): co♻e - A unittest framework for CODESYS based on TcUnit. Forked with kind permission by Jakob Sagatowski and contributors. MIT Licensed.
[ERROR] co♻e - a unittest framework for codesys, 1.2.0.0 (www.co5e.org): GVL_coUnit(line 4): C0106: No more free global memory available: Variable 'coUnitRunner', 77728400 Bytes (Largest contiguous free memory 109824). Incremental translation or adding variables to the persistent variable lists could generate fragmented memory. Execute the "Reorder list and clean up gaps" command to defragment the list of persistent variables or "Translate, clean up" to reallocate the memory for other data and code.
Any ideas on how to resolve this error?
Thank you in advance!
Hi,
Yes it seems the program will not fit in your PLC memory.
To resole this you can use the parameters in the CoUnit library to limit the various array sizes.
Can you give me an example on how this should look like?
Library Manager -> Library Parameters (near placeholders)
There you can change parameters like the max number of test suites, the max number of tests per test suite or the max number of asserts per test