Demonstrating Test-Driven Development and Evolutionary Design in the long run
2014-07-09
Let's Code Jumi #320: Timeouts (Part 1)
Testing anything which deals with the current time is hard, because you need to fake the current time or else suffer from flaky and/or slow tests. Encapsulating time and hiding it behind easily testable abstractions is the way to go.