File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

Agile Testing for a better design approach

Meenakshi Dubey

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?

Paul Wallace
Ranch Hand

Joined: Oct 09, 2006
Posts: 45
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.


Janet Gregory
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.


Co-author, with Lisa Crispin: Agile Testing: A Practical Guide for Testers and Agile Teams (Addison-Wesley, 2009)
I agree. Here's the link:
subject: Agile Testing for a better design approach
It's not a secret anymore!