php - Codeception in Yii2, every test in a row consume more memory -
i trying test class using codeception in yii2 advanced template. , uses memory, when run tests.
when run tests separately fast , don't use memory, take 10 mb, ok me. when run them all, every test in row uses more , more memory, , example 6 tests use 645mb together.
i suppose don't clean memory somehow. how clean memory after each test?
it happened after codeception update, 2.1.
found problem. used codeception/specify blocks, deep cloned everything.
i disabled cloning default, setting following in _bootstrap.php \codeception\specify\config::setdeepclone(false);
more info can found in docs: https://github.com/codeception/specify#global-configuration
Comments
Post a Comment