PHPUnit & Pest Test Explorer installs statistics
By Recca0120 · VS Code Marketplace · Debuggers
Run PHPUnit and Pest tests in VS Code with the native Test Explorer. Supports Docker, SSH, Laravel Sail, ParaTest, and Xdebug step-debugging.
PHPUnit & Pest Test Explorer has 301,950 recorded installs on VS Code Marketplace, an increase of 1.1% over the past 30 days, ranking #1167 of 2,515 tracked listings.
Rating: 5.00 / 5 from 23 ratings
About PHPUnit & Pest Test Explorer
PHPUnit & Pest Test Explorer for VS Code
Run PHPUnit and Pest tests directly in VS Code using the native Test Explorer UI.

Quick Start
- Install the extension from the VS Code Marketplace
- Open a PHP project that contains a
phpunit.xmlorphpunit.xml.dist - Tests appear automatically in the Test Explorer sidebar — click to run
PHPUnit and Pest are auto-detected from
vendor/bin. No configuration needed in most projects.Requires VS Code 1.93 or later.
Features
- Test Explorer integration — discover, run, and debug tests from the sidebar
- PHPUnit 7 – 12 & Pest 1 – 4 — broad version support
- Auto-detect binary — reads
composer.jsonto usevendor/bin/pestfor Pest projects automatically, and offers to switchphpunit.phpunitto it when Pest refuses the PHPUnit binary - Auto-reload — reloads all tests when
phpunit.xml(or the file given with-c),composer.jsonorcomposer.lockchanges - Inherited tests — tests a class gets from abstract parents and traits are listed under it, and update when the parent or trait changes
- Unsaved edits — tests typed into an open test file appear before you save it
- Colored output — syntax-highlighted results with embedded PHP source snippets
- Clickable stack traces — jump to file:line directly from error output
- Remote environments — Docker, SSH, Laravel Sail, DDEV via custom commands
- Multi-workspace Docker — single shared container for multiple workspace folders
- Parallel execution — ParaTest support
- Xdebug debugging — step-through debugging with one click
- Continuous runs — auto-run tests on file changes
- Errors and failures — an exception is reported as an error, a failed assertion as a failure
- Code coverage — Run with Coverage shows line and method coverage (requires Xdebug)
- Outdated results — changing a test file marks its last results as outdated
- Configuration errors — a malformed
phpunit.xmlis reported with its file and line, and its tests are not listed until it is fixed - Pest
->only()— the tests->only()keeps from running are shown as skipped - Settings from the Test Explorer — the gear of a run profile opens the extension's settings; in a multi-root workspace each folder shows a busy indicator while its tests reload

Settings
Add to .vscode/settings.json. All settings use the phpunit.* prefix.
{
// Path to the PHP binary (default: "php")
"phpunit.php": "php",
// Path to PHPUnit or Pest binary
// Auto-detected from composer.json: uses "vendor/bin/pest" if pestphp/pest is a dependency,
// otherwise defaults to "vendor/bin/phpunit". Only set this if auto-detection is not sufficient.
"phpunit.phpunit": "vendor/bin/phpunit",
// Custom command template
// Variables: ${php}, ${phpargs}, ${phpunit}, ${phpunitargs}, ${cwd}
// ${workspaceFolder} — absolute path to the workspace folder
// ${workspaceFolderBasename} — folder name only (e.g. "myproject")
// ${userHome} — user home directory
// ${pathSeparator} — OS path separator ("/" or "\")
"phpunit.command": "\"${php}\" ${phpargs} \"${phpunit}\" ${phpunitargs}",
// Extra arguments passed to PHPUnit
"phpunit.args": [],
// Path mappings for remote environments { "local/path": "remote/path" }
"phpunit.paths": {},
// Environment variables set before running
"phpunit.environment": {},
// Save all open files before running tests (default: false)
"phpunit.saveBeforeTest": false,
// Output format preset: "collision" (detailed per-test), "progress" (dot-progress), or "pretty" (per-test without icons)
"phpunit.output.preset": "collision",
// Override individual format fields from the preset (see phpunit package docs)
"phpunit.output.format": {},
// Clear debug output channel before each run (default: true)
"phpunit.clearDebugOutputOnRun": true,
// Control when Test Results panel opens automatically (VS Code built-in setting):
// - "openOnTestStart" — open as soon as a run starts
// - "openOnTestFailure" — open only when a test fails (useful for seeing dd() output)
// - "neverOpen" — never open automatically
// "testing.openTesting": "openOnTestFailure"
// launch.json configuration name for debugging
"phpunit.debuggerConfig": "",
// Xdebug port for debugging. 0 (default) uses the port of the debuggerConfig
// launch configuration, or a free port when no debuggerConfig is set
"phpunit.xdebugPort": 0
}
Configuration Examples
Local
For most local projects, zero configuration is needed. To use a different test runner:
// Pest
{ "phpunit.phpunit": "vendor/bin/pest" }
// Laravel Artisan
{ "phpunit.phpunit": "artisan test" }
// ParaTest (parallel execution)
{ "phpunit.phpunit": "vendor/bin/paratest" }
Docker
When running tests inside a Docker container, you need two things:…
Description from the VS Code Marketplace listing.
- keybindings
- laravel
- pest
- php
- phpunit
- test
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Debuggers plugins
All 20 PHPUnit & Pest Test Explorer alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=recca0120.vscode-phpunit. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.