Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Agile Testing for a better design approach

 
Meenakshi Dubey
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Paul Wallace
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • 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
 
Janet Gregory
Author
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic