Skip to content

Commit 995e7f0

Browse files
committed
feat(phpt): add PHP .phpt filter for php-src run-tests.php
Wraps `php run-tests.php` and collapses its per-test PASS chatter into one summary line plus a bounded list of failure diffs. On php-src's 5322-test suite with 467 failures, output drops from 1.3 MB to 6 KB (99.5% reduction). An all-pass run collapses to two lines. Handles PASS/FAIL/SKIP/BORK/WARN/LEAK/XFAIL, ANSI color codes, the ========DIFF======== / ========DONE======== blocks, and the trailing FAILED TEST SUMMARY block (which must not be re-counted).
1 parent 80a6fe6 commit 995e7f0

5 files changed

Lines changed: 635 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ rtk jest # Jest compact (failures only)
175175
rtk vitest # Vitest compact (failures only)
176176
rtk playwright test # E2E results (failures only)
177177
rtk pytest # Python tests (-90%)
178+
rtk phpt # PHP .phpt tests (run-tests.php, -99%)
178179
rtk go test # Go tests (NDJSON, -90%)
179180
rtk cargo test # Cargo tests (-90%)
180181
rtk rake test # Ruby minitest (-90%)

src/cmds/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pub mod dotnet;
55
pub mod git;
66
pub mod go;
77
pub mod js;
8+
pub mod php;
89
pub mod python;
910
pub mod ruby;
1011
pub mod rust;

src/cmds/php/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
automod::dir!(pub "src/cmds/php");

0 commit comments

Comments
 (0)