AJAX-Based Test Runner for PHPUnit

Sebastian Bergmann » 22 November 2006 » in PHPUnit » 3 Comments

There seems to be demand for a browser-based test runner for PHPUnit, so I added it to the roadmap for PHPUnit 3.1.

It would be great if the frontend for the browser-based test runner would make use of AJAX. Since I am clueless when it comes to both web design in general and AJAX in particular, I would appreciate if someone else could help me with implementing this test runner. I basically need the XHTML and CSS as well as the JavaScript that displays the initial page. Then the JavaScript needs to request a file from the server that initiates the test execution and reads test progress information in JSON format from it.

If you are interested in working on this, please get in contact with me on either the development mailinglist or the #PHPUnit IRC channel on Freenode.

Trackback specific URI for this entry

3 Comments to "AJAX-Based Test Runner for PHPUnit"

Display comments as (Linear | Threaded)
  1. Toby
    23/11/2006 at 10:30 Permalink
    You should ask Tobias Struckmeier and Jakob Westhoff for some help.

    Reply

  2. DeyV
    07/03/2007 at 15:30 Permalink
    The browser based runner is great idea for PhpUnit.

    For many beginners and peoples using MsWindows, the first problem in testing is necessity use console.

    SimplyTest for PHP do it a little simpler, but still is complicated and not don't have the PHPUnit's elegance.

    Good luck with this! We waiting... :)

    Reply

  3. Elijah Insua
    14/03/2008 at 07:21 Permalink
    I have written an automatic AJAX test runner which employs JSON to make the communication to PHPUnit via an intermediate 'sandbox'. Currently scans automatically, detecting when tests are added/modified. There is also a source connector that mostly works for maintaining a link between a test and its dependencies. File modification times are cached and whenever a dependency is changed, the test is automatically re-run.

    I have a demo up on viddler .. http://www.viddler.com/tmpvar/videos/1/ and am willing to distribute this thing under the BSD license.

    You can contact me via tmpvar@gmail.com if you want the source or discuss the possibilities. The source will be openly released once I get some of javascript refactored as its a bit of a mess.

    Reply

0 Trackbacks to "AJAX-Based Test Runner for PHPUnit"

  1. No Trackbacks

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Submitted comments will be subject to moderation before being displayed.