Commit Graph

94 Commits

Author SHA1 Message Date
Florian Raith fdc57f77b7 feat: convert namespace-style arguments to file paths in pest binary (#1705)
* feat: convert namespace-style arguments to file paths in pest binary

* test: allow running a single test using its namespace

* fix: preserve namespace filters when converting arguments

* test: update success snapshot for namespace filters

* fix: convert namespace after retry flag

---------

Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
2026-11-20 15:29:37 +05:30
Ikki Nishihara fabc818ba9 Support nested Composer vendor directories (#2053)
Co-authored-by: haranishi <223786623+haranishi@users.noreply.github.com>
Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
2026-11-20 02:40:22 +05:30
Ikki Nishihara fcd408b895 Match the exact TeamCity output flag (#2052)
Co-authored-by: haranishi <223786623+haranishi@users.noreply.github.com>
2026-11-19 15:51:16 +05:30
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
atymic 433b9893d4 fix(tia): parse SFC entries when building the JS module graph (#1919)
* fix(tia): parse SFC entries when building the JS module graph

rolldown has no SFC handling, so every .vue/.svelte page failed to parse at the
first byte of <script> and the JS graph came back empty. Reduce the component to
its script blocks before rolldown sees it, which is enough for import specifiers.

Closes #1918

* fix(tia): keep template-only TS imports and stub CSS as JS

TypeScript elision dropped imports used only in a <template>, so lang="ts" pages lost those edges. Newer rolldown also rejects asset stubs without an explicit moduleType, failing the build on any CSS import.

* fix(tia): ignore comments when detecting default export

* Refresh SFC module graph regression snapshots

---------

Co-authored-by: Punyapal Shah <53343069+MrPunyapal@users.noreply.github.com>
2026-11-16 23:05:31 +05:30
nuno maduro bf7c6b3134 fix(tia): casing issues 2026-08-11 01:47:14 +01:00
nuno maduro 42d9b777bf chore: coding style changes 2026-08-07 14:52:56 +01:00
nuno maduro 81eacd79fd fix: tia engine correctness issues
- keep table/Inertia/database link-tracking alive in piggyback-coverage
  recording, and merge link-only edges into the piggybacked edge set
- route migration changes through the watch-pattern fallback when the
  graph has no recorded table usage
- re-run cached failures whose test file cannot be located, downgrading
  filtered runs to full replay instead of silently skipping them
- align non-filtered replay with the failOn*/displayDetailsOn* rerun policy
- resolve anonymous index Blade components (<x-card> from card/index.blade.php)
  and stop swallowing components whose static usage walk selected no tests
- parse CTE/REPLACE queries and schema-qualified identifiers in TableExtractor
- scope-filter the xdebug recording path like pcov
- ignore in-flight .tmp files in FileState::keysWithPrefix and delete
  unreadable worker partials
- vite deps helper: resolve rolldown through rolldown-vite installs and
  degrade gracefully, honour vite.config resolve.alias (incl. the
  laravel-vite-plugin '@' default), resolve .vue/.svelte/.mts/.cts
  extensions, and stop memoizing cycle-tainted transitive sets

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-18 02:50:20 +01:00
nuno maduro 52819501eb chore: fixes tia when not running on root 2026-07-14 14:34:00 +01:00
nuno maduro a47e6f8fef wip 2026-05-02 19:30:14 +01:00
nuno maduro 9b7c15d5b6 wip 2026-05-02 12:03:35 +01:00
nuno maduro 3cc9b169e3 wip 2026-05-02 00:52:57 +01:00
nuno maduro 21efbc3107 wip 2026-05-01 22:55:38 +01:00
nuno maduro bed5e5b54a wip 2026-05-01 20:02:46 +01:00
nuno maduro 45b1d4ce20 wip 2026-05-01 19:50:54 +01:00
nuno maduro d106b70766 wip 2026-05-01 17:24:22 +01:00
nuno maduro 4a2fc179ae asd 2026-05-01 13:54:25 +01:00
nuno maduro 3d3c5d41ac wip 2026-04-23 12:29:24 -07:00
nuno maduro c6a42a2b28 wip 2026-04-22 08:07:52 -07:00
nuno maduro 3855249ce9 feat: adds --flaky cli option 2026-04-10 20:03:50 +01:00
Yury Kudryavtsev 4105e33c39 Fix Undefined array key "testdox-columns" warning
Fix Undefined array key "testdox-columns" warning
2025-10-21 11:44:55 +03:00
Admiral-Enigma cd5272d8cc Cast "testdox-columns" to an int 2025-08-22 10:00:49 +02:00
Nuno Maduro d2eb94d723 chore: bumps phpunit and paratest 2024-12-12 11:50:43 +00:00
Nuno Maduro 5a870b3940 chore: style changes 2024-10-01 11:51:16 +01:00
Nuno Maduro 41e50cac05 Adds assignees 2024-08-03 17:05:34 +01:00
Nuno Maduro 45cce6ce93 Style 2024-07-24 21:54:52 +01:00
Nuno Maduro ee32f25485 feat: pr and issue 2024-07-04 00:53:58 +01:00
Nuno Maduro 5c3bf469d5 feat: note() 2024-06-27 01:26:54 +01:00
Nuno Maduro cb0f256791 release: 2.33.2 2024-02-02 16:50:40 +00:00
Nuno Maduro c5ce355f3c feat: improves fatal exception handling 2024-01-25 21:47:31 +00:00
Nuno Maduro 8c57cc1731 fix: --watch plugin access to original arguments 2024-01-25 12:33:20 +00:00
Francisco Madeira 07b6ff6c04 Update bin/pest
Co-authored-by: Owen Voke <development@voke.dev>
2023-11-30 07:49:24 +00:00
Francisco Madeira ac5da9e3f7 feat: Allow --todo argument. 2023-11-30 00:32:23 +00:00
Nuno Maduro 049da041b2 release: v2.11.0 2023-08-01 14:43:50 +01:00
Nuno Maduro 0e5470b192 chore: adds support for PhpUnit@10.2.2 2023-06-15 12:02:00 +02:00
Nikos Charalampidis 1965763cd0 fix parallel execution of test class that inherit other class with the same name 2023-03-29 13:02:18 +03:00
Nuno Maduro b887116e5c fix: Pest.php file not loaded in certain environments 2023-03-20 17:34:42 +00:00
Nuno Maduro 2da899a2b1 fix: --todos in parallel and feedback on process isolation 2023-03-19 02:01:08 +00:00
Nuno Maduro 48ea48981b fix: todos flag 2023-03-19 00:49:06 +00:00
faissaloux ff1249b5cf remove unused imports 2023-03-18 16:16:45 +01:00
Nuno Maduro 2876ac590d fix: todo in parallel 2023-03-03 01:09:35 +00:00
Nuno Maduro b4b4bf3685 style: plugin actions improvements 2023-02-18 14:39:47 +00:00
Luke Downing d57437ff02 chore(cleanup): Tidy-up and tweaks of Pest Parallel integration. 2023-02-13 12:25:00 +00:00
Luke Downing 666b2f3fd0 chore(cleanup): Tidy-up and tweaks of Pest Parallel integration. 2023-02-13 12:13:53 +00:00
Luke Downing 69afb31bb9 chore(cleanup): Tidy-up and tweaks of Pest Parallel integration. 2023-02-13 11:13:17 +00:00
Nuno Maduro 8eaf4859ff chore: different refactors 2023-02-11 16:51:29 +00:00
Luke Downing e1406554fc WIP 2023-02-11 16:51:08 +00:00
Luke Downing 504fd04705 WIP 2023-02-11 16:51:08 +00:00
Luke Downing b7ec3c59b8 WIP 2023-02-11 16:51:08 +00:00
Luke Downing a34001faf0 WIP 2023-02-11 16:50:59 +00:00