Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » unit tests
unit tests [message #26138] Thu, 07 June 2007 02:02 Go to next message
Jack Bates is currently offline Jack BatesFriend
Messages: 2
Registered: July 2009
Junior Member
I understand there is a unit test framework for testing PDT itself:
http://wiki.eclipse.org/index.php/PDT_Testing_Framework

Does PDT integrate with any PHP unit test frameworks for testing PHP
projects developed with PDT? e.g. http://www.phpunit.de/

Thanks, Jack
Re: unit tests [message #26179 is a reply to message #26138] Thu, 07 June 2007 07:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: seva-eclipse.zend.com

Not currently.

On Thu, 7 Jun 2007 02:02:27 +0000 (UTC) ms419@freezone.co.uk (Jack Bates) wrote:

JB> I understand there is a unit test framework for testing PDT itself:
JB> http://wiki.eclipse.org/index.php/PDT_Testing_Framework
JB>
JB> Does PDT integrate with any PHP unit test frameworks for testing PHP
JB> projects developed with PDT? e.g. http://www.phpunit.de/
JB>
JB> Thanks, Jack

--
Seva Lapsha
[slapsha@dev.eclipse.org]
Zend Eclipse Developer
Re: unit tests [message #26584 is a reply to message #26179] Thu, 07 June 2007 21:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: oli.pocket-design.de

Hello Seva,

afaik there is already a bug filed some months ago
for that feature request. I don't believe it
to be too hard to implement, and also Sascha Bergmann
the author of phpunit is willing to help integration. [1]

It would be really great to see this feature in one of
the upcoming releases. So, what says the roadmap on that
subject?

Greetings,
Oliver


[1] http://dev.eclipse.org/newslists/news.eclipse.tools.php/msg0 0017.html
Re: unit tests [message #26820 is a reply to message #26584] Fri, 08 June 2007 11:34 Go to previous messageGo to next message
Ali B. is currently offline Ali B.Friend
Messages: 66
Registered: July 2009
Member
I think integrating support for phpunit into PDT would be a great
feature to have in it? I would love to see it implemented in an upcoming
release.

Oliver Trosien wrote:
> Hello Seva,
>
> afaik there is already a bug filed some months ago
> for that feature request. I don't believe it
> to be too hard to implement, and also Sascha Bergmann
> the author of phpunit is willing to help integration. [1]
>
> It would be really great to see this feature in one of
> the upcoming releases. So, what says the roadmap on that
> subject?
>
> Greetings,
> Oliver
>
>
> [1] http://dev.eclipse.org/newslists/news.eclipse.tools.php/msg0 0017.html
Re: unit tests [message #48916 is a reply to message #26138] Mon, 03 September 2007 18:58 Go to previous messageGo to next message
Ali B. is currently offline Ali B.Friend
Messages: 66
Registered: July 2009
Member
I have found a how-to article on PDT and PHPUnit. The problem is I don't
know German (Well, a little if you count google translation in :)). Here
is a link to the article:

http://www.redbrick.de/index.php?cat=howto

I tried translating the page through google but it wouldn't display
right. I guess I am going to have to translate each paragraph's text.

Another interesting thing are some screenshots published by Sebastian
Bergmann of "Zend Neon" testing the PHPunit integration with it. Is it
integrated with it? or was it just Sabastian playing around with the
IDE? I don't really know. Perhaps Zend's and/or PDT's people can shed
some light on if we should expect any PHPUnit support in PDT any time soon?

PS: We would understand if the Zend team are not willing to expose any
deep stuff about the Neon just yet ;)

I am sure that almost all of you are noticing the increasing popularity
for PDT by now. Don't you agree that by making code testing easier would
give PDT even higher ranks?

I would love to hear anyone's opinion about all of that. After all, PDT
is all about its community ;)


Cheers,
Ali

Jack Bates wrote:
> I understand there is a unit test framework for testing PDT itself:
> http://wiki.eclipse.org/index.php/PDT_Testing_Framework
>
> Does PDT integrate with any PHP unit test frameworks for testing PHP
> projects developed with PDT? e.g. http://www.phpunit.de/
>
> Thanks, Jack
>
Re: unit tests [message #49061 is a reply to message #48916] Wed, 05 September 2007 16:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mshekov.gmx.de

@Ali B.
About your 1st question: as I was so fortunate to meet Sebastian Bergman
in person a few weeks ago I did also ask him about that, and indeed
PHPUnit will be integrated into Zend Neon (in a similar way as JUnit
Tests are integrated with Eclipse for example)

About using PHPUnit with PDT: As I am german I had a look at the
mentioned article, but I think it is done in a too complicated way
there. If you use the php files which are generated by the skeleton
generator of PHPUnit you are able to run the Unit tests by either the
commandline ("phpunit testfile") or just by executing that php script
with php.exe. So this is exactly what I do in eclipse: I create the
skeleton (using command line), copy it to the right place in my
directory structure (./tests/...) and then edit it inside Eclipse/PDT. I
do use XDebug instead of the Zend Debugger Plugin for PDT. Then I can
simply create a "Run" or "Debug" configuration for the file I want to
start (e.g. one of the AllTests or a specific test) and use it just
fine. The advantages are that you are actually able to debug, and also
able to echo/var_dump variables, etc. when running your PHPUnit scripts
with php.exe instead of the phpunit wrapper.

I hope I was able to give you the idea of what I meant.

Greetings,
Marius

Ali B. wrote:
> I have found a how-to article on PDT and PHPUnit. The problem is I don't
> know German (Well, a little if you count google translation in :)). Here
> is a link to the article:
>
> http://www.redbrick.de/index.php?cat=howto
>
> I tried translating the page through google but it wouldn't display
> right. I guess I am going to have to translate each paragraph's text.
>
> Another interesting thing are some screenshots published by Sebastian
> Bergmann of "Zend Neon" testing the PHPunit integration with it. Is it
> integrated with it? or was it just Sabastian playing around with the
> IDE? I don't really know. Perhaps Zend's and/or PDT's people can shed
> some light on if we should expect any PHPUnit support in PDT any time soon?
>
> PS: We would understand if the Zend team are not willing to expose any
> deep stuff about the Neon just yet ;)
>
> I am sure that almost all of you are noticing the increasing popularity
> for PDT by now. Don't you agree that by making code testing easier would
> give PDT even higher ranks?
>
> I would love to hear anyone's opinion about all of that. After all, PDT
> is all about its community ;)
>
>
> Cheers,
> Ali
>
> Jack Bates wrote:
>> I understand there is a unit test framework for testing PDT itself:
>> http://wiki.eclipse.org/index.php/PDT_Testing_Framework
>>
>> Does PDT integrate with any PHP unit test frameworks for testing PHP
>> projects developed with PDT? e.g. http://www.phpunit.de/
>>
>> Thanks, Jack
>>
Re: unit tests [message #49093 is a reply to message #49061] Wed, 05 September 2007 18:17 Go to previous messageGo to next message
Ali B. is currently offline Ali B.Friend
Messages: 66
Registered: July 2009
Member
Marius,

Thanks a lot for the idea. I can see that the way you do it gives you
more option to run/debug. I will certainly give it a try.

As for integrating into Neon, It's great to hear that it will have
native support for PHPUnit. The question is, would PDT do?

Anyway, I guess time will certainly tell ;)

Thanks again.

Cheers,
Ali

Marius Shekow wrote:
> @Ali B.
> About your 1st question: as I was so fortunate to meet Sebastian Bergman
> in person a few weeks ago I did also ask him about that, and indeed
> PHPUnit will be integrated into Zend Neon (in a similar way as JUnit
> Tests are integrated with Eclipse for example)
>
> About using PHPUnit with PDT: As I am german I had a look at the
> mentioned article, but I think it is done in a too complicated way
> there. If you use the php files which are generated by the skeleton
> generator of PHPUnit you are able to run the Unit tests by either the
> commandline ("phpunit testfile") or just by executing that php script
> with php.exe. So this is exactly what I do in eclipse: I create the
> skeleton (using command line), copy it to the right place in my
> directory structure (./tests/...) and then edit it inside Eclipse/PDT. I
> do use XDebug instead of the Zend Debugger Plugin for PDT. Then I can
> simply create a "Run" or "Debug" configuration for the file I want to
> start (e.g. one of the AllTests or a specific test) and use it just
> fine. The advantages are that you are actually able to debug, and also
> able to echo/var_dump variables, etc. when running your PHPUnit scripts
> with php.exe instead of the phpunit wrapper.
>
> I hope I was able to give you the idea of what I meant.
>
> Greetings,
> Marius
>
> Ali B. wrote:
>> I have found a how-to article on PDT and PHPUnit. The problem is I
>> don't know German (Well, a little if you count google translation in
>> :)). Here is a link to the article:
>>
>> http://www.redbrick.de/index.php?cat=howto
>>
>> I tried translating the page through google but it wouldn't display
>> right. I guess I am going to have to translate each paragraph's text.
>>
>> Another interesting thing are some screenshots published by Sebastian
>> Bergmann of "Zend Neon" testing the PHPunit integration with it. Is it
>> integrated with it? or was it just Sabastian playing around with the
>> IDE? I don't really know. Perhaps Zend's and/or PDT's people can shed
>> some light on if we should expect any PHPUnit support in PDT any time
>> soon?
>>
>> PS: We would understand if the Zend team are not willing to expose any
>> deep stuff about the Neon just yet ;)
>>
>> I am sure that almost all of you are noticing the increasing
>> popularity for PDT by now. Don't you agree that by making code testing
>> easier would give PDT even higher ranks?
>>
>> I would love to hear anyone's opinion about all of that. After all,
>> PDT is all about its community ;)
>>
>>
>> Cheers,
>> Ali
>>
>> Jack Bates wrote:
>>> I understand there is a unit test framework for testing PDT itself:
>>> http://wiki.eclipse.org/index.php/PDT_Testing_Framework
>>>
>>> Does PDT integrate with any PHP unit test frameworks for testing PHP
>>> projects developed with PDT? e.g. http://www.phpunit.de/
>>>
>>> Thanks, Jack
>>>
Re: unit tests [message #49298 is a reply to message #49093] Thu, 06 September 2007 13:35 Go to previous message
Eclipse UserFriend
Originally posted by: mep_eisen.web.de

Yes, it works. You are executing simple scripts and You are looking at the
console view.

> As for integrating into Neon, It's great to hear that it will have
> native support for PHPUnit. The question is, would PDT do?

Looking at bugs should answer this question (id 150506). Maybe we should
vote on this request since it got no comments for one year. I am thinking
of a small community project (since I cannot wait any more) and maybe it
will be integrated in PDT one time :-)

* Integrate a launch configuration based on pdt's launch configuration
* Integrate some commands (run as PHPUnit test...)
* Integrate a simple view (like JUnit's view)

Those should be fairly simple. But it does not cover PHPUnits power. There
are some other features:
* Code coverage (using XDebug)
* Software metrics (as of PHPUnit 3.2)

One might want to create PHPUnit tests on the fly. Also there should be
respect on other extensions (Mock objects, DBUnit port.....).
Previous Topic:Debuggable file extensions?
Next Topic:PDT and Hyperlinking
Goto Forum:
  


Current Time: Thu Apr 25 10:53:02 GMT 2024

Powered by FUDForum. Page generated in 0.03930 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top