• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Agile Testing for a better design approach

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic