I am using codeception (with codecoverage) to check the code coverage of an application I have written using the Yii2 framework. Because the standard php installation on my mac has xcode not enabled, I activated it adding a zend_module line to my php.ini. Code coverage seems to work now but is painfully slow. Yes I know that the activated xdebug and coverage generation takes some time, but I think this is not normal: Even a simple unit test which checks only the initialization of an object takes up to 15 minutes.
I don't think that it is a cpu or ram problem rather than a configuration problem.
I start code coverage with:
codeception run unit --coverage-html
Things I detected: The first test runs always fast regardless how big it is. The second test is much slower (regardless what test it is) and the third is more slowly. How can I track this down? I want to detect the problem.
Again: I know that codecoverage slows down tests, but 15 minutes for a simple test is not normal.
//EDIT: The test that runs approx. 15 minutes, takes 1 second without code-coverage enabled.