finds.dev← search

// the find

adamwathan/sublime-phpunit

★ 278 · Python · updated Jul 2018

Run individual unit test files directly from Sublime

A Sublime Text 3 plugin that runs PHPUnit from the editor by scanning up the directory tree for phpunit.xml. It's a thin convenience wrapper — you get test commands in the palette and keybindings instead of switching to a terminal. Aimed at PHP developers who still use Sublime Text.

The phpunit.xml discovery by walking up the tree is the right approach — it works correctly for monorepos and nested projects without manual config. The 'run single test' command (running just the method under the cursor) is the one that actually saves time day-to-day. Keybinding customization is straightforward and well-documented.

Abandoned since 2018 — Sublime Text has moved on and this targets ST3 explicitly with no mention of ST4 compatibility. macOS-only by design (AppleScript for iTerm2/Terminal.app), so Windows and Linux users get nothing. No test output parsing, so you read raw terminal output with no inline failure markers. Installation is manual git clone with no Package Control listing, which is a friction point most people won't bother with today.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →