A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/recca0120/vscode-phpunit below:

recca0120/vscode-phpunit: The VS Code Test Explorer extension for PHPUnit And Pest

PHPUnit & Pest Test Explorer

Run your PHPUnit OR Pest tests in Node using the Test Explorer UI.

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

This extension contributes the following settings:

The following commands are available in VS Code's command palette, use the ID to add them to your keyboard shortcuts:

PHPUnit path mapping not working

Problem:
Path mapping with ${workspaceFolder} does not work as expected.
Example:

{
  "phpunit.paths": {
    "${workspaceFolder}": "/app"
  }
}

Solution: Replace ${workspaceFolder} with the actual project path. For example:

{
  "phpunit.paths": {
    "/myproject": "/app"
  }
}
Running test with XDEBUG_TRIGGER env

When you have a PHP Xdebug launch configuration like this below:

and you are using docker compose, setup the extension with the configuration below to enable debug if your xdebug.ini configuration has xdebug.start_with_request=trigger:

Then you can run the test with the "Debug Test" icon button. You can also run the test using the "Run Test" icon but you should have already started the Xdebug session from VSCode Debugger before running the test.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4