Feng Forum
Other Topics => Development => Architecture => : Stenner April 08, 2009, 09:07:54 AM
-
I was just wondering if PHPunit or any other testing framework is being used for the development of OpenGoo. It would be an advantage to be able to test and see if a change I made would break something else.
-
Hi Stenner,
We are not using any unit testing framework for the moment. We thought of using one but haven't decided on this yet. Personally, I don't have too much experience with unit testing to take advantage of it, but if you want to share your knowledge you are welcome to do so :)
-
Sorry about the late response. Was out of office during Easter.
I have tried using CruiseControl.net for doing some TDD (Test Driven Development), but that was in C#, so I'll have to look into the proper tools for php. So far I've found CruiseControl.rb which should work as a continuous integration tool. You can get it at http://cruisecontrolrb.thoughtworks.com/.
To understand the concept I'd recommend reading the article written by Martin Fowler at http://www.martinfowler.com/articles/continuousIntegration.html.
It seems as if phpunit is the right unit testing framework to use together with CruiseControl, but I've yet to test it out. Once I've done that I'll share my views and recommendations and write some simple samples for people to start out with.
-
That would be very useful info Stenner!
-
phpUnderControl is a CruiseControl addon for PHP projects.
Check it out at http://phpundercontrol.org/about.html