|
Mailing Lists
|
Home / Groups / CFUnit
Order of TestsWhat can I say... I'm not planning to have a bit debate about developement processes in this forum. I am interested in using CFUnit in our developement environment, as I can see a use for it. To do TDD would require a major change to how we develope, which I can't make happen. Also, I was asking about the CFUnit testing framework, not a developement process... Cheers > 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 > > > > > > > > > > > > > > > > > > |
February 12, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||