Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 34837
369
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic