-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'file' of undefined #18
Comments
Everything works beautifully if I open {
"phpunit.phpunit": "${workspaceFolder}/subfolder/vendor/bin/phpunit",
"phpunit.args": [
"--configuration ./subfolder/tests/phpunit.xml"
],
} |
OK. I'll fix this problem at next version ... |
@borekb meanwhile, it might help to set your environment PATH variable to your phpunit bin folder, have you tried it? |
Try latest version |
Thanks, it detects my tests now without any further configuration. There's one problem though – it also scans gitignored folders, for example, I get tons of tests from the UPDATE: created a separate issue for it: #20. |
My problem probably is that this extension cannot find the PHPUnit binary (my tests live in a subfolder of a workspace, so the
vendor
folder is not at the top level) but the error given is rather mysterious:I've also seen a similar error with
EACCES
which I cannot reproduce now.It would be nice if a more useful message was printed.
The text was updated successfully, but these errors were encountered: