mirror of
https://github.com/pestphp/pest.git
synced 2026-12-04 06:55:05 +01:00
9dc8c1d5cb
* fix: honor all stop-on-* flags in parallel mode Previously --stop-on-failure was the only flag honored in parallel mode, and it only cleared pending tests when the exit code was non-zero. The rest (--stop-on-defect, --stop-on-error, --stop-on-risky, --stop-on-incomplete, --stop-on-warning, --stop-on-notice, --stop-on-deprecation, --stop-on-skipped) were silently ignored. WrapperRunner now precomputes the set of progress-file characters that should trigger a stop (F, E, R, I, W, N, D, S) based on the configured flags, and scans each worker's progress file for them after every cycle. Once any matching outcome is seen, the pending queue is cleared. Up to N-1 in-flight tests (where N is --processes) can still complete after the first stop-worthy outcome — stopping them mid-run would risk corrupting shared state. Closes #1463. * fix: preserve parallel stop conditions on Pest 5 * test: expand parallel stop-on regression coverage
8 lines
161 B
PHP
8 lines
161 B
PHP
<?php
|
|
|
|
$issue = require __DIR__.'/../ParallelStopOnSharedIssue.php';
|
|
|
|
it('shares warning', $issue(E_USER_WARNING));
|
|
|
|
it('shares notice', $issue(E_USER_NOTICE));
|