mirror of
https://github.com/pestphp/pest.git
synced 2026-12-06 07:42:17 +01:00
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:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user