Conclusions
- Testing a whole program is very difficult
- Break your code up into small testable units
- Define your API
- Think about what input data should be tested
- Write tests before you write code
- Write your code
- More testing = fewer bugs = less work = more happiness!
Recommended reading
- Ammann, P. and Offutt, J. (2016) "Introduction to Software
Testing", Cambridge University Press; 2nd edition. ISBN-10:
1107172012; ISBN-13: 978-1107172012.