Page 1 of 1
Unit testing poll
Posted: Sun Aug 17, 2003 9:16 pm
by lastcraft
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
Posted: Sun Aug 17, 2003 9:20 pm
by trollll
Since I couldn't select multiple choices (I test as I write it, after I write it, before I ship it and if I have a PM they test it as well (or rather not as well, but they test it).
Posted: Mon Aug 18, 2003 4:17 pm
by jason
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?
Posted: Mon Aug 18, 2003 11:12 pm
by trollll
I don't really use a tool... I just write code so that I can test it outside of the application. just like in other experiments, you need to eliminate external stimuli in order to tell what causes things to go wrong.
Posted: Tue Aug 19, 2003 3:37 am
by devork
I usuall make a test dir with every project ..then make,test modules in that directory and then insert in project
Posted: Wed Aug 20, 2003 3:58 pm
by lastcraft
Hi
jason wrote:which tools do you guys unit test with? Which unit testing packages?
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.
yours, Marcus