Skip to content


Cakephp, phpUnderControl & SimpleTest

Lately I’ve been working with phpUnderControl and I think it’s a very cool project… the problem is that it doesn’t support Simpletest (which is the default test suit for Cake…)

Searching for a solution, I saw this Drupal patch that pretty much let you run simpletest with phpUnderControl on Drupal apps.
So I started hacking on it so it would work on Cake apps… and after a while, I got it work a bit… however, there are still some simpletest configurations requirements that I haven’t been able to figure out…

So, if someone else is interested in running simpletest with phpUnderControl and would like to contribute with some code, I uploaded what I have so far on github…

http://github.com/jpablobr/cakeUnderControl

 

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Posted in CakePHP, Git, Hacks, PHP, Programming, Web Development, unit-testing.

Tagged with , , , , , , , .


7 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Antonio Hernández says

    Just today I started my research in order to chose a Continuous Integration tool for our cakePHP projects.

    Do this patch allow to have the full functionality of phpUnderControl over simpleTest?

    Would be better to try to integrate phpUnit on cakePHP?

    Thanks for your hard work!

  2. jpablobr says

    Hey Antonio, actually if you are not very familiar with Simpletest I wouldn’t recommend it…

    It’s still very buggy… and actually, looking for another testing framework, I found Cucumber (mainly for Rails) but apparently you can integrate it with PHP… looks very promising…
    I’ll give it a try and maybe post about it…

    Cheers!

  3. kvz says

    Hi José,

    I’m seeing my project. I’m also seeing the SimpleTest menu link. But I’m not getting any results in it. I’ve placed the following in my build.xml based on your Drupal link; but I feel I may be way of:

    Do you maybe have an example of how you tie in the cake test framework into the cruisecontrol build process?

  4. kvz says

    I wasn’t able to paste XML here, but here’s a link:
    http://bin.cakephp.org/view/647856866

  5. kvz says

    Sorry for the postflood, but you probably had to modify:
    http://demo.codesetter.com/files/run-tests-xml.php.txt

    in some way, right?

  6. jpablobr says

    Hi kvz, I actually never got it to work properly, I had to start working on other things and was not able to dedicate more time to it…

    That’s why I uploaded to github what I had… so if someone else was interested, it could be a starting point…

    Yes, it would be better if you review http://demo.codesetter.com/phpundercontrol-drupal-6-n-7 post so you can have a better idea on how the Drupal guys made it work for them…

    I wish I could help you a bit more but I’m really swamp with a bunch of projects…

Continuing the Discussion

  1. Tweets that mention Cakephp, phpUnderControl & SimpleTest – jpablobr.com -- Topsy.com linked to this post on November 4, 2009

    [...] This post was mentioned on Twitter by Planet CakePHP, Sebastien Charrier. Sebastien Charrier said: Excellent ! RT @planetcakephp: #cakephp Cakephp, phpUnderControl & SimpleTest http://bit.ly/GxDTW [...]



Some HTML is OK

or, reply to this post via trackback.

Notify me of follow-up comments via email.


Fork me on GitHub