Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tips to improve test readability

 
Sanjoy Kumar Roy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a blog about test readability.

http://sanjoykr.blogspot.co.uk/2013/05/7-tips-to-make-your-tests-readable.html

Please have a look and send me any additional suggestion on test readability if you have.

Thanks
Sanjoy
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abstract assertions. For example assertBlue(color) and the assertBlue method contains three other assertions that check the color.
 
Sanjoy Kumar Roy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne, for the additional tip.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic