Time Travelling and Fixing Bugs with Property-Based Testing (2019)

13 points by abhin4v


amw-zero

Date and time logic is one of the best domains for property based testing of pure logic. I have a tiny personal finance app that uses iCalendar rrule expansion to figure out when recurring bills are due, and PBT caught so many bugs related to daylight savings and time zones.

I personally think PBT should be the default, but for those who aren’t as bullish, dates and times is one area that definitely hits the sweet spot at least.