Releases: elonmallin/vscode-phpunit
Releases · elonmallin/vscode-phpunit
Bug fix path runner and spaces in path
- Bugfix: Handle space in path for the filter arg of phpunit.
- Bugfix: Use the
phpunit.php
config if the path is found.
Problems pane, color output, docker and custom command
- BREAKING CHANGE Updated vscode engine version required to latest 1.27.0.
- Add color output and show failed tests in problems pane by running a task using a problem matcher.
- Add config property
phpunit.docker.image
for choosing docker image forDockerDriver
. - Add
DockerContainerDriver
to find running containers and pick from list. - Add
phpunit.docker.container
to set running container to use forDockerContainerDriver
. - Add
phpunit.command
config for running custom commands in place of php. Such as custom docker commands. - Add
phpunit.paths
to map paths for virtual environments. String replace with regex will be used for all paths in this config. Ex config:
{
"/local/path": "/vitual/path",
"/second/local/path": "/second/virtual/path"
}
Run php through docker and stop test command
- Can now run php through docker. Will look for phpunit in all normal places (path, composer, phar).
- Add Stop running phpunit command (kill process).
- Bugfix: Prevent output window from stealing focus.
- Update vscode, typescript and other packages.
Auto find phpunit for composer and .phar files
- Now uses global php if not set at
phpunit.php
(previouslyphpunit.execPath
)phpunit.execPath
still works for backwardscompatibility but is deprecated.
- Now tries to find phpunit in the project folder (composers vendor dir and .phar files).
- Will clear the output after each run (option:
clearOutputOnRun
default=true).
Allow @test docblocks again
- Bugfix: Allow
@test
docblocks again and not onlytest*
prefix.
No quick pick flag and instant run bug fix
- Bugfix: Run the instant tests reliably if the cursor is in the right place. Not every other try.
- Add config option preferRunClassTestOverQuickPickWindow (default: false). Set to true to never show the quick pick window and just test the whole class if the cursor is on anything other than a function name.
Bugfix: open output channel on test run
- Bugfix: open output channel on test run.
Quick pick and multi project
- This release shows the quick pick window to select a test when you run "PHPUnit Test" not directly on a function or class. If you have the cursor directly on the class or function name it will run instantly just like in previous releases.
- Multiple projects can be used with the "PHPUnit Test Directory" command since full paths will now be used to locate the directory.
Update vscode engine and multi project
Chores to update vscode engine, typescript, es5->es6 target and multi project support.
Stable relative path fix and nice name update
- Fixed the relative path bug introduced by VSCode 1.5.0.
- Nicer display name.