chapter 12: Testing Object-oriented Programs

Why test? 765 Unit testing 768 Testing with py.test 776 Imitating expensive objects 786 How much testing is enough? 790 Case study 793 Exercises 799 Summary

12.1 Why test?

12.1.1 Linux

Automatic Install Script

$ sudo wget -qO- https://get.docker.com/ | sh

remove hell-world

$ sudo docker rm `sudo docker ps -aq`
$ sudo docker rmi hello-world

.

12.2 Unit testing

12.3 Testing with py.test

12.4 Imitating expensive objects

12.5 How much testing is enough?

12.6 Case study

12.7 Exercises

12.8 Summary