Eclipse PDT & PHPUnit?

后端 未结 13 1290
野的像风
野的像风 2021-01-30 17:35

Is there any integration of PHPUnit with Eclipse PDT?

If not, are there any plans to do so?

13条回答
  •  心在旅途
    2021-01-30 18:04

    (disclaimer: I am absolutely not the developer of the project I'm speaking about here; only a user ^^ (And as I don't know JAVA, it would be quite hard for me to help by contributing code... So this is my way of helping :-) ) )

    There is currently work in progress on that side : a few weeks ago (maybe no more than two weeks), the first of a project of integrating phpunit in Eclipse has been released:

    • http://code.google.com/p/phpunit4eclipse/

    What it does:

    • allows to launch phpunit tests from eclipse
    • and get some "visual clue" of what is going on
    • which is, in some way, better / more user-friendly than the approach proposed by Sebastian on phpunit's wiki.

    For some kind of screenshot, see http://code.google.com/p/phpunit4eclipse/wiki/j2phpUnitWrapper


    Unfortunately, it is not (yet?) developed as an Eclipse plugin:

    • it is a separate JAVA project, that launches phpunit
      • or something like that, as far as I can tell...
    • which means :
      • not as well integrated in Eclipse as it could
      • most important thing is when you double-click on a test class/method, it doesn't get you to that class/method (because the tests' result are shown by the JAVA project, and the test class/method is in another, PHP, project)
    • it is still quite hard to install :
      • I have not successfully managed to install it in Eclipse PDT
      • I have had to install "Eclipse IDE for Java Developers", and, then, install the PDT plugin in this one (which works fine, but is not "easy")

    Anyway, this is work in progress, the project is still quite young, and it's only a first step...


    A google group has been created for that project a few time ago: http://groups.google.com/group/phpunit4eclipse-user/

    It is currently empty, but I'm sure it would help if some people joined in, gave their thoughts, and why not, helped!

提交回复
热议问题