I hope this isn’t too extremely obvious, but I found that I had to take a step back and re-examine my unit tests to find this simple improvement to speed up my unit tests.
When I wrote about how I’m hooked on test-driven development (TDD), the example in that post was too simple and time savings are not noticed. However, let’s dive in to something a little deeper where we have a full class to test oppose to a single internal function.