Skip to main content

Mark Stephens: JavaOne 2013 – 10 things you should know when writing Good Unit Test Cases in Java

Today was the first day of JavaOne 2013 and it was jammed packed full of sessions. The best one I went to gave these 10 clear ideas to write good tests. 1. Think before you act (ie planning!) 2. Make your tests understandable. 3. Keep your tests small and simple. 4. Test one thing only. 5. Fast tests only. 6. Absolute repeatability...

Community: General