Meaningless Drivel is fun!*
The moose likes Agile and Other Processes and the fly likes Agile Testing for a better design approach Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Agile and Other Processes
Bookmark "Agile Testing for a better design approach" Watch "Agile Testing for a better design approach" New topic
Author

Agile Testing for a better design approach

Meenakshi Dubey
Greenhorn

Joined: May 18, 2005
Posts: 1
Hello Authors,

What is your view on using agile tests to have better design? Does the book discuss this aspects of agile testing that could guide one to use it in best possible manner?


Thanks,
Meenakshi
Paul Wallace
Ranch Hand

Joined: Oct 09, 2006
Posts: 40
Great question, I'm also interested in the authors' answer.

From my experience, decoupling the layers in an application is the key to making your code testable. For instance, in an MVC style web application, don't pass the HTTPServletRequest outside of your Controller (e.g. action class in struts) or you will make it more difficult to unit test your Model etc.

Really interested to hear if you book addresses such issues.

Regards

Paul
Janet Gregory
Author
Ranch Hand

Joined: Jan 25, 2009
Posts: 31

TDD is a great way to develop emerging design. If the tests are written first, the design will naturally evolve. We are not experts in TDD, but can recommend good books on the subject. SDD (story driven development) will help ensure the code addresses business value and we talk about that. It also helps to build testability into the code.

We also cover automated testing in the correct layer, which is what I believe Paul is refering to. For example, if your tests can touch the API layer without going through the GUI, then the tests will be more robust and less fragile.

Janet


Co-author, with Lisa Crispin: Agile Testing: A Practical Guide for Testers and Agile Teams (Addison-Wesley, 2009) www.janetgregory.ca
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Agile Testing for a better design approach