fix(tia): write the merged coverage report in chunks (#1997)

* fix(tia): write the merged coverage report in chunks

var_export() of the serialized coverage held a second escaped copy of the payload and exhausted memory after a large suite.

* test: count the chunked coverage report in visual snapshots

The two CoverageReport tests add two passes and four assertions to the suite totals.

* test: separate coverage report files in the success snapshot

Pest prints a blank line between files, so the snapshot was not a substring of the suite output.

---------

Co-authored-by: Tiago Santos <tsantos@lynixt.pt>
Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
This commit is contained in:
Tiago Santos
2026-11-03 14:39:40 +00:00
committed by GitHub
parent 58570721c7
commit 960756e594
4 changed files with 81 additions and 6 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ test('parallel', function () use ($run): void {
$output = $run('--exclude-group=integration');
$output = implode("\n", array_slice(explode("\n", (string) $output), -10));
$expected = '2 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 29 skipped, 1607 passed (3534 assertions)';
$expected = '2 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 29 skipped, 1609 passed (3538 assertions)';
expect($output)
->toContain("Tests: {$expected}")