TDD and SimpleTest

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

TDD and SimpleTest

Post 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.
Last edited by Maugrim_The_Reaper on Mon Oct 03, 2005 11:49 am, edited 1 time in total.
User avatar
Nathaniel
Forum Contributor
Posts: 396
Joined: Wed Aug 31, 2005 5:58 pm
Location: Arkansas, USA

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: TDD and SimpleTest

Post by Weirdan »

Maugrim_The_Reaper wrote: Edit: This should have been posted to "Unit Testing", sry to the Mods.
Moved.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post 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.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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. :lol: 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 :?: :D Someday, I will be moving others to catch up on TDD because it's the way to go, man! 8)

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 :wink: Meanwhile I will continue with my own Page Controller....
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

n00b Saibot wrote:And all this time I thought you were Mr. Marcus Baker. :lol:
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.
User avatar
sweatje
Forum Contributor
Posts: 277
Joined: Wed Jun 29, 2005 10:04 pm
Location: Iowa, USA

Post 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.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post 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.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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 :)
Post Reply