Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSCode phpunitNew to Visual Studio Code? Get it now.
VSCode phpunit

VSCode phpunit

Mohammed Manssour

|
2,979 installs
| (0) | Free
Run individual unit test files directly from VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-phpunit README

Run individual unit test files directly from VSCode in iTerm

Requirements

Make sure to open iterm before running any tests.

Extension Settings

  1. missionx.vscode-phpunit.phpunitBinary: define the path to the phpunit binary, default to empty and it will use the binary from your vendor file. This is also used to define your command entry point. fox example if you're using docker to manage your development workflow, set this option to be
"missionx.vscode-phpunit.phpunitBinary": "docker exec -it <contait id> -w <working directory> ./vendor/bin/phpunit"
  1. missionx.vscode-phpunit.commandPrefix define a prefix to be added before the command, default to empty.
  2. missionx.vscode-phpunit.commandSuffix define a suffix to be added after the command, default to empty.
  3. missionx.vscode-phpunit.filePath whether to user absolute file path or relative file path, default to absolute, available options: absolute|relative
  4. missionx.vscode-phpunit.cdIntoDirectory whether or not to cd into your project directory before executing the command.

Known Issues

Make sure to open iterm before running any tests.

Available Commands:

  1. vscode-phpunit.run: Run Current Test Method
  2. vscode-phpunit.run_single: Run Current Test File
  3. vscode-phpunit.run_tests_in_dir: Run All Tests In Current Dir
  4. vscode-phpunit.run_all_tests: Run All Tests(Full TestSuit)

Contributors:

  • Mohammed Manssour website | @ManssourMhd
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft