PHPUnit On Server in PHPStorm 7, how to?
Zend Framework Based Project setup :
/
- application
- library
- public
- tests
- tests/logs/clover.xml
I have a phpunit.xml in my tests directory. When I ssh into the box and run it locally it works fine.
I am trying to configure phpstorm to run my tests on the remote server from within the UI. But I am getting this error.
Testing started at 1:11 PM ...
Uploading test files to devcloud...
Executing tests
Failed to retrieve test results from the server at http://tools.kthomsondev.com/_intellij_phpunit_launcher.php
Cleaning up...
I don't know what this _intellij_phpunit_launcher.php file is, or why it gets created or why I need it. It isn't getting created in my /public/ which is the only directly web accessable directory.
Anyone have any guidance? I'd be happy with a help page link if there's one available.
Please sign in to leave a comment.
Hi there,
"PHPUnit on Server" is executed via web interface and not SSH ( http://youtrack.jetbrains.com/issue/WI-19485 ).
PhpStorm uses special wrapper scripts (helpers) for integration purposes, that allow to monitor and gather test execution results in real time (already mentioned intellij_phpunit_launcher.php).
I guess this may not work for you because (AFAIK) there is no way of telling IDE that web-accessible content must be placed in /public/ folder. I mean -- you could play with path mappings for your Deployment server .. but I'm unsure that it will work out well...
If above suggestion will not help .. then I guess (although not 100% sure) this needs to be implemented first: http://youtrack.jetbrains.com/issue/WI-15169
ok, so I can set up a seperate vhost and point the webroot at whatever place phpstorm needs to see.
But I don't know where the file should be getting created so I can't set up the vhost. Does the file get created in the root of the tests folder? In the location of the phpunit.xml? when I do a find on my remote box I can't find anything by that file name.
I have access to my apache config so I can make whatever file web accessable that I need to in short.
Well ... I'm not using such configuration myself .. so not so sure. But based on your original message I would say that it gets created in website root (http://tools.kthomsondev.com/_intellij_phpunit_launcher.php).
The helper file gets automatically deleted when tests are done (successfull or not).
Alrighty, so the way that I seem to have gotten this to work is to create a tests.kthomsondev.com that has its webroot pointed at my tests directory and then I can run that.
Now to figure out how to get profiling going and coverage.
Thanks for the help!
Be at ease,
Kristopher.