So far, we've talked a lot about how to write tests, but we haven't said much about how to run them. We've had to explicitly tell Python which tests to run, and we've had the either worry about which version of Python we were using (in the case of doctest) or put an
if __name__ == '__main__'inside every module (for unittest). Clearly, there's room for improvement, when it comes to running tests.
In this chapter we shall:
So let's get on with it!
Nose is ...