|PHPUnit + Eclipse Configuration [message #555068]
||Wed, 25 August 2010 11:39
| No real name
Registered: August 2010
I am using Eclipse to develop / modify files on a webserver in the local intranet (Webserver is Windows, my OS is Windows too). The Webserver is called tcweb (\\tcweb) and the htdocs folder is mapped to a network drive (W:\)
This all works perfectly fine, but now I want to start testing my files, but since I am not developing on my local machine, I came across some problems while testing / configuration.
First of all, I didn't figure out how to configure PHPUnit as External Tool because of all this different machines and pathes... I installed PHP Unit (with Pear and without) on my local machine, on the webserver, in my files directory, ... anyway I never got it to run
So i found out about this PTI plug in and I installed PHP Unit this way: http://www.phphatesme.com/blog/tools/phpunit-mittels-pti-in- eclipse-einbinden/
With this way, simple tests works out, but if I am trying to include something (e.g. some classes,...) it always points the working directory to an eclipse subfolder (eclipse/plugins/...) and so all tests fail because the dependencies between the files do not work (if i use eclipse on the server) or I even can't include the file (because it is on the server and eclipse is on my local machine) altough the test folder with the test files i am executing is in the same file structure.
Is there any way to configure PHP Unit (maybe as an external tool?) so that I can test files on the webserver?
Thanks in Advance
Powered by FUDForum
. Page generated in 0.01805 seconds