Notice "2x WARNING: Timeout: Some coverage data is not included in the coverage report." always appears · Issue #6837 · Codeception/Codeception · GitHub
For the coverage.serialized, it should not check for file content != '0', otherwise it waits for coverage file contents to be exactly 0 - and logs the warning if it never gets there.
I wish I saw your post @particleflux - I spent days on this and came to exactly the same conclusion as I first assumed it was my code causing the issue. Further evidence that it is not due to tests overrunning...
I added the following code to __c3__testcounter() in c3.php:
Activity
particleflux commented on Jul 17, 2026
I found something out about this...
Seems this warning is incorrectly shown when \Codeception\Coverage\Subscriber\LocalServer::waitForFile() is waiting on coverage file.
That method is called for both the "block_report" file, where it is correct, and the serialized coverage file, where it is incorrect:
Codeception/src/Codeception/Coverage/Subscriber/LocalServer.php
Lines 152 to 153 in eb7a6a2
For the coverage.serialized, it should not check for file content != '0', otherwise it waits for coverage file contents to be exactly 0 - and logs the warning if it never gets there.
Codeception/src/Codeception/Coverage/Subscriber/LocalServer.php
Lines 329 to 331 in eb7a6a2
In the case of the coverage.serialized, tho, the warning is wrong, as it opens it again afterwards anyway.
Suggested fix, sth like this:
gl636474 commented on Oct 14, 2026
I wish I saw your post @particleflux - I spent days on this and came to exactly the same conclusion as I first assumed it was my code causing the issue. Further evidence that it is not due to tests overrunning...
I added the following code to __c3__testcounter() in c3.php:
error_log(sprintf('c3counter %s %s %s => %s',
$decrease ? 'down' : 'up',
$_SERVER['REQUEST_URI'] ?? '?',
date('H:i:s'),
$testcounter));
And it produced the following output:
[Wed Oct 14 23:42:58.914566 2026] [php:notice] [pid 25401] [client ::1:56119] c3counter up /autotest/wordpress/wp-json/wp/v2/users/me?context=edit&_locale=user 22:42:58 => 1, referer: http://localhost:8080/autotest/wordpress/wp-admin/
[Wed Oct 14 23:43:01.086088 2026] [php:notice] [pid 25343] [client ::1:56123] c3counter up /autotest/wordpress/wp-json/wp/v2/users/me?context=edit&_locale=user 22:43:01 => 2, referer: http://localhost:8080/autotest/wordpress/wp-admin/admin.php?page=simple-google-appointments-calendars
[Wed Oct 14 23:43:03.886996 2026] [php:notice] [pid 25400] [client ::1:56118] c3counter up /autotest/wordpress/wp-json/wp/v2/users/me?context=edit&_locale=user 22:43:03 => 3, referer: http://localhost:8080/autotest/wordpress/wp-admin/admin.php?page=simple-google-appointments-calendars
[Wed Oct 14 23:43:03.886977 2026] [php:notice] [pid 25401] [client ::1:56119] c3counter down /autotest/wordpress/wp-json/wp/v2/users/me?context=edit&_locale=user 22:43:03 => 2, referer: http://localhost:8080/autotest/wordpress/wp-admin/
[Wed Oct 14 23:43:05.223728 2026] [php:notice] [pid 25343] [client ::1:56123] c3counter down /autotest/wordpress/wp-json/wp/v2/users/me?context=edit&_locale=user 22:43:05 => 1, referer: http://localhost:8080/autotest/wordpress/wp-admin/admin.php?page=simple-google-appointments-calendars
[Wed Oct 14 23:43:06.394706 2026] [php:notice] [pid 25400] [client ::1:56118] c3counter down /autotest/wordpress/wp-json/wp/v2/users/me?context=edit&_locale=user 22:43:06 => 0, referer: http://localhost:8080/autotest/wordpress/wp-admin/admin.php?page=simple-google-appointments-calendars
So the test returned within a second or so!? Hopefully this is useful to someone.