Skip to content
PluginStats

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.

View on VS Code Marketplace Fresh · Oct 20, 2026

PHPUnit & Pest Test Explorer has 296,736 recorded installs on VS Code Marketplace, ranking #1166 of 2,501 tracked listings.

Installs
296,736
Official API · Oct 20, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1166
Among tracked VS Code Marketplace listings

Rating: 5.00 / 5 from 22 ratings

About PHPUnit & Pest Test Explorer

PHPUnit & Pest Test Explorer for VS Code

Version Installs License

繁體中文

Run PHPUnit and Pest tests directly in VS Code using the native Test Explorer UI.

PHPUnit

Quick Start

  1. Install the extension from the VS Code Marketplace
  2. Open a PHP project that contains a phpunit.xml or phpunit.xml.dist
  3. 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.

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.json to use vendor/bin/pest for Pest projects automatically
  • Auto-reload — reloads all tests when phpunit.xml or composer.lock changes
  • 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

Pest

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}, ${phpunitxml}, ${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, 0 = random (default: 0)
  "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:

  1. phpunit.command — tells the extension how to execute commands in the container
  2. phpunit.paths — maps your local file paths to container paths so the extension can locate test files and parse error output

Important: ${workspaceFolder} may not resolve correctly on macOS or WSL. If you encounter path issues, replace it with the actual absolute path (e.g. /home/user/myproject).

docker exec (existing container):

{
  "phpunit.command": "docker exec -t my_container /bin/sh -c \"${php} ${phpargs} ${phpunit} ${phpunitargs}\"",
  "phpunit.paths": {
    "${workspaceFolder}": "/app"
  }
}

docker run (ephemeral container):

{
  "phpunit.command": "docker run --rm -t -v ${PWD}:/app -w /app php:latest ${php} ${phpargs} ${phpunit} ${phpunitargs}",
  "phpunit.paths": {
    "${workspaceFolder}": "/app"
  }
}

Docker Compose:

{
  "phpunit.command": "docker compose exec -t app /bin/sh -c \"${php} ${phpargs} ${phpunit} ${phpunitargs}\"",
  "phpunit.paths": {
    "${workspaceFolder}": "/app"
  }
}

If your docker-compose.yml is not in the workspace root, use the -f flag:…

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

PHPUnit & Pest Test Explorer installs on VS Code Marketplace, last 90 days: 296,736 installs as of Oct 20, 2026.PHPUnit & Pest Test ExplorerInstalls on VS Code Marketplace · Last 90 days296,736installs296.4K296.5K296.5K296.6K296.6K296.7K296.7K296.8KJul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Oct 20, 2026 · 5 observations · Updated Oct…pluginstats.com
PHPUnit & Pest Test Explorer installs on VS Code Marketplace, last 90 days: 296,736 installs as of Oct 20, 2026.

7/30/90-day growth

PHPUnit & Pest Test Explorer installs growth on VS Code Marketplace: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.PHPUnit & Pest Test ExplorerInstalls growth on VS Code Marketplace296,736installs now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 20, 2026pluginstats.com
PHPUnit & Pest Test Explorer installs growth on VS Code Marketplace: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

PHPUnit & Pest Test Explorer VS Code Marketplace ranking history: currently #1166 (by installs).PHPUnit & Pest Test ExplorerVS Code Marketplace ranking · by installs · Last 90 days#1166current rank#1163#1164#1165#1166#1167#1168Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 16, 2026 – Oct 20, 2026 · 5 observations · Updated Oct 20, 2026pluginstats.com
PHPUnit & Pest Test Explorer VS Code Marketplace ranking history: currently #1166 (by installs).

Ratings over time

PHPUnit & Pest Test Explorer ratings on VS Code Marketplace, last 90 days: 22 ratings as of Oct 20, 2026.PHPUnit & Pest Test ExplorerRatings on VS Code Marketplace · Last 90 days22ratings19202122232425Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Oct 20, 2026 · 5 observations · Updated Oct…pluginstats.com
PHPUnit & Pest Test Explorer ratings on VS Code Marketplace, last 90 days: 22 ratings as of Oct 20, 2026.

Listing placement

All VS Code Marketplace2,501 listings · 126 pages · 1,252 shown · page 59, #6 (overall #1,166)
All VS Code Marketplace: every listing in installs order

Listing placement

Debuggers217 listings · 11 pages · page 6, #7 (overall #107)
Debuggers: every listing in installs order

Listing placement

Testing76 listings · 4 pages · page 3, #11 (overall #51)
Testing: every listing in installs order

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 (5)
Recent installs observations for PHPUnit & Pest Test Explorer
Date (UTC)InstallsChange vs. previous
296,736+126
296,610+46
296,564+50
296,514+84
296,430—

Similar VS Code Marketplace Debuggers plugins

All 20 PHPUnit & Pest Test Explorer alternatives

Data 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 Oct 20, 2026. See the methodology.