Test Driven Development: where do I start?

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

McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

deltawing wrote:I will try to get back to it at some point though.
No problem. I've been hoping to have a go at some TDD sessions on the forums but I expect they'll take a while to follow through. I've got a site to transfer to a new host right now so I was kind of relieved not to find some difficult questions tonight.

Please do ask difficult questions though :) We can keep it moving as time allows.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

CoderGoblin wrote:Do you tend to also use this type of structure..
You can download a slice from my own library here: http://www.sitepoint.com/forums/showpos ... stcount=15

It's all a bit experimental and hasn't been subjected to peer review, but it shows you how I've organised things. Library files - classes - are in aperi_lib. I put all the test cases in a "tests" folder with each category. The test runners are separated out so you don't have to put the library files under the web root.

I'm actually not sure what other people do, or if there's a standard way to organise things. If there is it might be better to follow that. I'll defer to Jason here.
Post Reply