Library Testing Functionality

We would save a lot of developer time if libraries included testing functionality. One example of this is the Python requests library. It’s a beautiful piece of software that makes dealing with HTTP requests easy. Testing that you’re making the correct HTTP requests is not straightforward, though.

At work(PrintWithMe) we have multiple internal libraries. For any new one added, we make it a habit to provide testing functionality, including fakes/doubles, fixtures, setup/teardown, and other helper functions.