mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-21 22:26:18 +05:30
test(phpunit): fix PHPUnit different CWD with a custom command
As per https://github.com/recca0120/vscode-phpunit/issues/385#issuecomment-3947799942 Also needed to set `XDEBUG_MODE`. Generally works, but now I get test failures.
This commit is contained in:
parent
4192751004
commit
285f592e70
1 changed files with 4 additions and 1 deletions
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
|
@ -2,14 +2,17 @@
|
|||
"files.associations": {
|
||||
"**/cfg/conf*.php": "ini"
|
||||
},
|
||||
"phpunit.environment": {
|
||||
"XDEBUG_MODE": "coverage"
|
||||
},
|
||||
"phpunit.phpunit": "${userHome}/.composer/vendor/bin/phpunit",
|
||||
"phpunit.command": "/bin/sh -c 'cd ${workspaceFolder}/tst && ${php} ${phpunit} ${phpunitargs}'",
|
||||
"phpunit.args": [
|
||||
"--configuration",
|
||||
"${workspaceFolder}/tst/phpunit.xml",
|
||||
"--bootstrap",
|
||||
"${workspaceFolder}/tst/Bootstrap.php"
|
||||
],
|
||||
"mochaExplorer.mochaPath": "js/node_modules/mocha",
|
||||
"mochaExplorer.pkgFile": "js/package.json",
|
||||
"mochaExplorer.files": "js/test/*.js"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue