Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ rtk go test # Go tests (NDJSON, -90%)
rtk cargo test # Cargo tests (-90%)
rtk rake test # Ruby minitest (-90%)
rtk rspec # RSpec tests (JSON, -60%+)
rtk phpunit # PHPUnit tests (failures only, -65%+)
```

### Build & Lint
Expand Down Expand Up @@ -418,6 +419,7 @@ Blocked on upstream BeforeToolCallback support ([mistral-vibe#531](https://githu
| `rake test` / `rails test` | `rtk rake test` |
| `rspec` / `bundle exec rspec` | `rtk rspec` |
| `rubocop` / `bundle exec rubocop` | `rtk rubocop` |
| `phpunit` / `vendor/bin/phpunit` / `bin/phpunit` | `rtk phpunit` |
| `bundle install/update` | `rtk bundle ...` |
| `docker ps/images/logs` | `rtk docker ...` |
| `kubectl get/logs` | `rtk kubectl ...` |
Expand Down
10 changes: 10 additions & 0 deletions scripts/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,16 @@ section "Hook check (#344)"

assert_contains "rtk init --show hook version" "version" rtk init --show

# ── 42. PHP (conditional) ───────────────────────────

section "PHP (conditional)"

if command -v phpunit &>/dev/null || [ -f vendor/bin/phpunit ] || [ -f bin/phpunit ]; then
assert_help "rtk phpunit" rtk phpunit --help
else
skip_test "rtk phpunit" "phpunit not installed"
fi

# ══════════════════════════════════════════════════════
# Report
# ══════════════════════════════════════════════════════
Expand Down
1 change: 1 addition & 0 deletions src/cmds/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub mod dotnet;
pub mod git;
pub mod go;
pub mod js;
pub mod php;
pub mod python;
pub mod ruby;
pub mod rust;
Expand Down
3 changes: 3 additions & 0 deletions src/cmds/php/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//! PHP ecosystem filters.

pub mod phpunit_cmd;
Loading