Comments (1)
I never used dan
but for docker compose I have to specify both "phpunit.command"
and "phpunit.php"
. It might be similar for dan
Check extension page, section Docker
Here is my settings.json
{
"phpunit.command": "docker exec -t app /bin/sh -c",
"phpunit.php": "XDEBUG_MODE=debug XDEBUG_TRIGGER=vscode XDEBUG_SESSION=vscode php",
"phpunit.phpunit": "/var/www/html/vendor/phpunit/phpunit/phpunit",
"phpunit.args": [
"-c",
"phpunit.xml"
],
"phpunit.paths": {
"${workspaceFolder}": "/var/www/html"
},
}
Also open Output
panel in and select phpunit
in drop down to see which command is being executed when you run the test and then tweak your settings.json
based on that
Good luck
from vscode-phpunit.
Related Issues (20)
- cannot debug and be stopped
- Tests status not updating in tests explorer HOT 3
- phpunit.paths setting doesn't resolve path mapping HOT 6
- docker: invalid reference format HOT 3
- Tests are not being detected
- json5 to jsonc in README.md to match vscode's settings.json format
- Problem with path to the test file HOT 2
- Command-line options are not recognized by phpunit HOT 1
- Extension causes high cpu load
- Editor is read-only because the file system of the file is read-only HOT 4
- Not showing all test classes HOT 2
- Could not open input file on Mac HOT 2
- Issue when cwd has spaces in directory name HOT 1
- Option to Remove --teamcity Command-line Argument HOT 1
- Don't show test as failed when failOnRisky and failOnWarning are set to false HOT 1
- Debug test with xdebug HOT 1
- Feature request: adding exclaimation mark to test with warnings to help spotting them
- Extension does not work with PHP 8.3
- Spawn Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-phpunit.