Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PHPUnit WatcherNew to Visual Studio Code? Get it now.
PHPUnit Watcher

PHPUnit Watcher

Heris IT

|
1,338 installs
| (2) | Free
Run PHPUnit on file changes
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHPUnit Watcher

PHPUnit watcher extension for VS Code

Features

  • Run PHPUnit on each file save
  • Report PHPUnit status in status bar

Requirements

  • php needs to be in the PATH variable.
  • PHPUnit (Version 8+) This must be either available globally and in the PATH variable or installed in the project via composer

Extension Settings

This extension contributes the following settings:

  • phpunit-watcher.projectFolder: Set the project root folder (only required if not equal to the workspace folder), default: ""
  • phpunit-watcher.phpunit: PHPUnit command, default: "phpunit"
  • phpunit-watcher.php: PHP command, default: "php"
  • phpunit-watcher.phpunitArguments: PHPUnit arguments, default: "tests"
  • phpunit-watcher.useComposer: Try to use phpunit from composer, default: true
  • phpunit-watcher.triggerLanguageIds: Language Ids that trigger a rerun of the unit tests on save, seperate by commas. Example options: php, html, json. Default: "php"

Release Notes

1.1.0

Added support for PHPUnit 8

1.0.1

Make Language Ids that trigger a rerun of the tests configurable.

1.0.0

Initial release of PHPUnit Watcher extension for VS Code

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft