Page 1 of 1
TDD and SimpleTest
Posted: Mon Oct 03, 2005 10:26 am
by Maugrim_The_Reaper
Looking for good in-depth tutorials or references for the above. I've only spent a few hours previously (time constraints

) looking at TDD... Besides studying the API, I've done the tutorial offered by the Simple Test site (managing to evade confusion at the very last section where there seem to be a few small errors).
Thanks.
Edit: This should have been posted to "Unit Testing", sry to the Mods.
Posted: Mon Oct 03, 2005 11:10 am
by Nathaniel
An article I missed until a couple days ago was
Marcus Baker's article on TDD, which is linked to on the front page of LastCraft, but isn't especially easy to notice, IMO.
- Nathaniel
Re: TDD and SimpleTest
Posted: Mon Oct 03, 2005 1:52 pm
by Weirdan
Maugrim_The_Reaper wrote:
Edit: This should have been posted to "Unit Testing", sry to the Mods.
Moved.
Posted: Mon Oct 03, 2005 5:31 pm
by McGruff
Jason's book could be worth a read. I've only seen the sample iterator chapter so it's hard to comment but it looks it'll be a very valuable source for the php world.
I learned about testing just by doing it. Marcus site is a great source although, like many things OOP-ish, I wuoldn't claim I got it at the first read.
It's certainly good to have someone to help you find your feet so I'll pop over to your FrontController topic now.
Posted: Tue Oct 04, 2005 2:26 am
by n00b Saibot
McGruff wrote:I learned about testing just by doing it. Marcus site is a great source although, like many things OOP-ish, I wuoldn't claim I got it at the first read.
And all this time I thought you were Mr. Marcus Baker.

But I seriously tell you, after spending only 15 minutes minutes reading, I had enough TDD captured to successfully write complete Web Test Suite for my next big project

I wrote my own HTMLReporter to jazz up the output to suit my taste. I also designed Web GUI for my tests so that I can select which tests to run. I read up somewhere that 20% of tests can uncover about 80% of the flaws of the code, which are put into Very Important category. Likewise I have divided tests into three categories - Very Important, Less Important and Superfluous. I think I am going right track, isn't it

Someday, I will be moving others to catch up on TDD because it's the way to go, man!
Meanwhile, I read up on controllers and was surprised to see that most of the mixture of controllers, I had already implemented in most of designs unknowingly. I mostly use a central config file which a page controller queries for deciding the display. I think I would have to read up and implement quickly to check which of them are best since I don't get to do many experiments in my job, except for free-time in between those huge projects

Meanwhile I will continue with my own Page Controller....
Posted: Tue Oct 04, 2005 2:44 pm
by McGruff
n00b Saibot wrote:And all this time I thought you were Mr. Marcus Baker.

I'll maybe need to rethink my signature if that's the source of confusion. Marcus is a great guy. Very knowledgable and helpful and I've learned a lot from him.
I don't know if I'd still be programming if it wasn't for SimpleTest. It's certainly much easier and more fun with it. I hate getting bogged down with bugs.
Posted: Tue Oct 04, 2005 3:27 pm
by sweatje
And here I though McGruff's new avatar was sort of a retro-H.P. Lovecraft Cthulhu thing

Now I see it has a higher purpose.
Posted: Tue Oct 04, 2005 4:07 pm
by McGruff
I love the closing paragraph:
I think we can all look forward to the time when these three theories are given equal time in our science classrooms across the country, and eventually the world; One third time for Intelligent Design, one third time for Flying Spaghetti Monsterism, and one third time for logical conjecture based on overwhelming observable evidence.
Posted: Wed Oct 05, 2005 3:30 am
by Maugrim_The_Reaper
Maybe its just me (being a catholic) but all this ID nonsense seems to be growing at an alarming rate. What exactly is the problem in seeing its a bunch of unproven and unprovable assertions? FSM certainly makes far more sense...

Odd to think that the backwards conservative Catholic church known for burning heretics at the stake in the not so distant past has long held the official view that Evolution is an entirely valid and acceptable theory. Sometimes my religion does get it right...
Back on topic...before the wrath of the mods is incurred...
Thanks for the article references above. After starting from there I'm working my way through a chain of the things. I can see a few days worth of reading ahead. I think the learning curve is flattening out a bit
