Getting Phing to work

6 views
Skip to first unread message

savage...@gmail.com

unread,
Mar 21, 2008, 6:00:53 AM3/21/08
to ihacky-discuss
I have been trying to get Phing to work along with PHPunit, which
PHPunit has its own code-coverage mechanism. Everything seems to be
working for me but I have a problem with the xDebug module
installation. The tutorial I am following is

http://devzone.zend.com/article/2803-Introducing-xdebug

Please feel free to try it and post if you get it working. Once we
can get it working, we can use it in Hudson for the lab.

Jon Lao

unread,
Mar 22, 2008, 7:14:53 AM3/22/08
to ihacky-discuss
Which part are you stuck on.

So far I'm able to get xdebug_trace and such working.

Jon

savage...@gmail.com

unread,
Mar 23, 2008, 5:58:54 AM3/23/08
to ihacky-discuss
I got just about everything working, phing, phpunit, spike
phpcoverage, but the problem is that they work, but all the tools need
xdebug extension to be installed. My phpinfo() shows that my xdebug
is working, but my "php -m" in command line shows that my xdebug does
not exist. So whenever i run phing, I get this message:

exception 'Exception' with message 'CoverageSetupTask depends on
Xdebug being installed.' in C:\tool
s\phing-2.3.0\classes\phing\tasks\ext\coverage\CoverageSetupTask.php:
116

I am not sure what I am doing wrong. Are you guys able to get xdebug
to show up on your command line window with "php -m" ?

Marcius Bagwan

unread,
Mar 23, 2008, 6:59:18 AM3/23/08
to ihacky-discuss
I got it showing with php -m. How did you install xdebug? through the
pear installer or did you get the dll?

savage...@gmail.com

unread,
Mar 23, 2008, 10:11:36 AM3/23/08
to ihacky-discuss
I got the dll from the xdebug homepage. I installed php5 manually
also. If you guys were able to get it working, then try download the
build file I made(default build file) :

http://ihacky.googlecode.com/files/build.xml

which will invoke the unit test in this file (Unit test file):

http://ihacky.googlecode.com/files/xmlToArrayTest.php

Since I am not able to get xdebug extension working, please try to get
the build file to work. You should be able to type "phing" on the
command line window in the directory of the build file to get it to
work. The files may need to be modified because I am not able to test
it until I get xdebug working.

Marcius Bagwan

unread,
Mar 23, 2008, 7:10:25 PM3/23/08
to ihacky-discuss
Okay, I was able to get the "BUILD FINISHED" result, but the coverage
result was empty. Is it supposed to be like that?

savage...@gmail.com

unread,
Mar 24, 2008, 7:20:22 AM3/24/08
to ihacky-discuss
I dont think it supposed to be like that, but i wont know for sure
until I get my phing working. Feel free to modify the build file and
experiment with it.
Reply all
Reply to author
Forward
0 new messages