vscode-phpunit icon indicating copy to clipboard operation
vscode-phpunit copied to clipboard

Using relative path

Open Fanny42 opened this issue 6 years ago • 5 comments

Hello ! I can't find any way to set a relative path for phpunit. I am using Symfony, and I don't want to update setting.json every single time I start a new project, nore add a local .vscode/settings.json file. Isn't it possible to use a variable like ${workspaceFolder} to find bin/phpunit in everyworkspace ?

Fanny42 avatar Sep 17 '19 11:09 Fanny42

I'll try fix this later

recca0120 avatar Sep 18 '19 04:09 recca0120

I'm rewriting this project now, it will fix this issue at next version

recca0120 avatar Nov 22 '19 14:11 recca0120

+1 I'd also like relative path as it is a bit cumbersome with Symfony.

charlesg99 avatar Jan 31 '20 17:01 charlesg99

Does the recent update to "phpunit.relativeFilePath": true, give you what you need here?

aphix-mark avatar Jul 09 '20 14:07 aphix-mark

@aphix-mark It doesn't appear to work. When specifying a relative path, it still tries to execute phpunit using an absolute path:

spawn /./tools/phpunit ENOENT

With the following config settings:

    "phpunit.phpunit": "./tools/phpunit",
    "phpunit.relativeFilePath": true,

mikebronner avatar May 09 '22 18:05 mikebronner

I observe exactly the same behavior as @mikebronner. @aphix-mark "phpunit.relativeFilePath": true seems to be ignored

janfschmidt avatar Nov 16 '22 15:11 janfschmidt

try version 3.0

recca0120 avatar Dec 06 '22 05:12 recca0120