Commit Graph

67 Commits

Author SHA1 Message Date
Aleksandr Štšepelin 9dc8c1d5cb fix: honor all stop-on-* flags in parallel mode (#1684)
* 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
2026-11-17 01:49:46 +05:30
Lazizbek Ergashev cf20587575 fix: support brianium/paratest 7.28 grouped test files (#2025) 2026-11-13 18:03:05 +05:30
Adil Khan b3baf7e210 fix: accept --no-results and the --do-not-* test run history options with --parallel (#1982)
* fix: accept `--no-results` and the `--do-not-*` test run history options with `--parallel`

* Update success snapshot count

---------

Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
Co-authored-by: Punyapal Shah <53343069+MrPunyapal@users.noreply.github.com>
2026-11-03 21:41:05 +05:30
ChrisAbner 9a77ff6b96 fix: let extensions register event subscribers in --parallel mode (#2002)
Co-authored-by: Aleksandr Štšepelin <as@jp.ee>
Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
Co-authored-by: Punyapal Shah <53343069+MrPunyapal@users.noreply.github.com>
2026-11-03 21:21:33 +05:30
Muhammed Alkhudiry 3a5a14b6a6 fix: reduce parallel worker polling interval to 1 ms (#1967)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:19:33 +05:30
nuno maduro 73fe04f8c3 fix: support with paratest 2026-10-12 21:28:57 +04:00
Morten Harders 5f3d0f2124 fix: support brianium/paratest 7.26.1 worker tmp dir (#1959)
paratest 7.26.1 added a required $tmpDir argument to WrapperWorker and
keeps worker files in a private per-run directory. Create that 0700
directory per run, pass it to each worker and remove it on completion.
Require paratest ^7.26.1.
2026-10-11 22:42:40 +05:30
nuno maduro 9714c8553f release: 5.3.1 2026-10-07 23:02:36 +04:00
nuno maduro 942d6aead1 chore: ci fixes 2026-09-14 15:41:18 +01:00
nuno maduro ac48185736 chore: upgrades to phpunit:13.3 2026-08-10 10:16:30 +01:00
nuno maduro 42d9b777bf chore: coding style changes 2026-08-07 14:52:56 +01:00
nuno maduro 4d3d0105b7 chore: style 2026-08-06 16:02:36 +01:00
nuno maduro 411b9954b5 wip 2026-08-05 16:18:03 +01:00
nuno maduro b5e1b83bb4 fix: cache results on parallel 2026-07-19 12:29:33 +01:00
nuno maduro 33e3bf2888 chore: moves to phpunit 13.2 2026-07-07 13:40:02 +01:00
nuno maduro 4ef12b9aac Merge branch '4.x' into 5.x 2026-06-01 06:25:56 +01:00
nuno maduro 6aa7d2f891 fix: better fatal exceptions reporting 2026-06-01 05:41:58 +01:00
nuno maduro 74a28d4f5e fix: wrapper runner 2026-04-17 07:29:03 -07:00
nuno maduro 4fb4908570 Merge branch '4.x' into 5.x 2026-04-10 22:37:24 +01:00
nuno maduro b71bfc513a chore: guards 2026-04-10 12:23:49 +01:00
nuno maduro 8a83a1a1a9 Merge pull request #1655 from stsepelin/fix/parallel-empty-suite-reporting
fix: nested dataset discovery and parallel invalid-dataset reporting
2026-04-10 11:59:48 +01:00
nuno maduro 109bb22c5e Merge pull request #1615 from smirok/parallel-teamcity-concurrency-fix
fix: enhance support for --parallel and --teamcity arguments by restoring --teamcity for ParaTest and fixing teamcity output concurrency
2026-04-10 11:42:45 +01:00
nuno maduro 8dd650fd05 Merge branch '4.x' into 5.x 2026-04-09 21:39:15 +01:00
nuno maduro d9d46c73f8 chore: stores statically the result 2026-04-09 21:36:49 +01:00
nuno maduro 6fdbca1226 fix: parallel testing 2026-04-06 23:37:49 +01:00
Aleksandr Štšepelin 07737bc0b2 Fix parallel file selection and empty-suite reporting 2026-03-25 23:59:28 +02:00
Nuno Maduro 5de8693e3b chore: style 2026-02-17 16:15:58 +00:00
Ilia Smirnov e6f511302b fix: enhance support for --parallel and --teamcity arguments by restoring --teamcity for ParaTest and fixing teamcity output concurrency 2026-01-27 16:47:24 +01:00
Michael Withagen ae1da79ac1 Pass test dir to worker
#1444 
Test directory argument is lost when spawning workers, add it again.
2025-11-05 17:15:51 +01:00
Nuno Maduro 0fc9d4dfe0 feat: adds phpunit 12.2.1 support 2025-06-08 15:29:23 +01:00
Nuno Maduro a310796165 Fixes filtering tests 2025-04-29 11:38:33 +01:00
Nuno Maduro 791734a29c Fixes tests 2025-04-20 22:19:25 +01:00
Nuno Maduro d2eb94d723 chore: bumps phpunit and paratest 2024-12-12 11:50:43 +00:00
Nuno Maduro 0d50d35b5e release: v3.0.6 2024-09-11 18:59:43 +01:00
lukeraymonddowning b16e8650da Fixes parallel mutation testing when using Laravel Herd. 2024-09-11 15:11:47 +01:00
lukeraymonddowning c2f30e0148 Fixes parallel mutation testing when using Laravel Herd. 2024-09-11 15:04:44 +01:00
Nuno Maduro 9353015691 feat(presets): reworks code 2024-08-07 11:08:29 +01:00
Nuno Maduro 45cce6ce93 Style 2024-07-24 21:54:52 +01:00
Nuno Maduro f2691623cf feat: toHaveAllMethodsDocumented and toHaveAllPropertiesDocumented 2024-07-19 14:03:59 +01:00
Caleb White be407ac904 fix: warn if no code coverage driver 2024-01-11 10:20:35 -06:00
Nuno Maduro 6068ef6150 feat: adds support for PHPUnit 10.4 2023-10-06 13:33:31 +01:00
Nuno Maduro 6f54462070 fix: sync wrapper runner with paratest 2023-09-19 11:27:09 +01:00
Nuno Maduro 492f797dd5 chore: style changes 2023-08-17 11:24:16 +01:00
Nuno Maduro 0787b37f2c chore: style changes 2023-08-17 11:18:59 +01:00
Nuno Maduro b1dd18af8a chore: style changes 2023-08-16 09:46:31 +01:00
Nuno Maduro 3742e74adf feat: adds "phpunit/phpunit": "^10.3.1" support 2023-08-04 11:23:55 +01:00
Nuno Maduro 54f4ee57ad refacto: 100% type coverage 2023-07-01 10:31:26 +01:00
Nuno Maduro 0e5470b192 chore: adds support for PhpUnit@10.2.2 2023-06-15 12:02:00 +02:00
Nuno Maduro 14dd5cb57b fix: test result on parallel 2023-03-21 21:05:11 +00:00
Nuno Maduro c9a8007811 chore: uses instance method of facade 2023-03-20 16:00:11 +00:00