Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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: 34396
346
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