Skip to content
Closed
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: 1 addition & 1 deletion Cargo.lock

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those changes are unwanted. Please revert

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ rtk rake test # Ruby minitest (-90%)
rtk rspec # RSpec tests (JSON, -60%+)
rtk err <cmd> # Filter errors only from any command
rtk test <cmd> # Generic test wrapper - failures only (-90%)
rtk phpunit # PHPUnit tests (failures only, -65%+)
```

### Build & Lint
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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure it is worth it without at least one assert_ok or assert_contains and/or assert_fails

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 @@ -6,6 +6,7 @@ pub mod git;
pub mod go;
pub mod js;
pub mod jvm;
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