Hi...
I am very much in the "Test Infected" (Eric Gamma) camp, but was curious to see how current practices on this topic have penetrated the PHP community. I am talking about writing test scripts here that can be run by anyone.
yours, Marcus
Unit testing poll
Moderator: General Moderators
I would love to say honestly that I write my tests before and during the coding process, but I don't. Hey, I am being honest!
Okay, I know the benefits, it's obvious, and I should do the testing. So, in order to advance this into something more productive than just a "I feel good because I voted the popular vote", let me ask this: which tools do you guys unit test with? Which unit testing packages?
Okay, I know the benefits, it's obvious, and I should do the testing. So, in order to advance this into something more productive than just a "I feel good because I voted the popular vote", let me ask this: which tools do you guys unit test with? Which unit testing packages?
Hi
yours, Marcus
You don't need a tool to start unit testing as such, only a homebrew script that can be run again and again. Pretty soon you would evolve these scripts into a test tool anyway. The problem is that when you move on to tricker test cases (using mock objects say, performance tuning or testing web pages directly) you will want to use a tool. You then face changing over all of your old test cases into a different format.jason wrote:which tools do you guys unit test with? Which unit testing packages?
yours, Marcus