House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / CFUnit

Order of Tests

Author:
Neil Middleton
09/26/2007 07:09 PM

TDD isn't used so you're not going to use it? Why?  What is honestly stopping you from using TDD? Neil > > hi Andrew, > > Thanks for the input, and as much as I would love to do "real" TDD, > that method of developement isn't used where I work. > > Cheers, > > David > > > > I am going to give some very helpful advice here. > > > > Read up on Test Driven Development, and remember that you are going to > need > > to think differently as well. TDD, which is Test Driven Development is a > way > > to write code in small chunks and get the tests to pass as you develop. > > > > Why is that important, is answered in a book called Test Driven > Development > > by Kent Beck. The idea is that as you develop you are refactoring your > code > > by test development to cover all your code with unit testing. > > > > This form of development is slower, and complex to get your head around > if > > you are not used to it. But trust me you'll notice the benefits when it > > comes to maintenance and unforseen problems down the track. > > > > Another thing to remember is something called Mock objects, these can be > > very handy in a situation like you described because you can create a > mock > > object and then test for its destruction as what you need to do. Also > Mock > > objects are very good for DAO, TAO and such because you are writing > tests > > that mimic what they should do and in these cases wouldn't write data > back > > to the database if they are mock objects. > > > > Sorry to be a pain and throw this at you, but I think it is important to > > understand Test Driven Development first and how it works to benefit and > > appreciate it. > > > > > > > > > > Andrew Scott > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au > > Phone:+613 8676 4223 > > Mobile: 0404 998 273 > > > > > > > > > >


Search cfunit

February 12, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29