My go-to exception for this has always been Factorio. They have not only unit tests, but integration tests, regression tests, fuzzers, performance regression tests, ....
Their blog regularly goes into details about how it all works. It's very much worth reading.