A good post about automated testing in games by Rare developer Jessica Baker. She also has a follow-up post about unit test here: https://jessicabaker.co.uk/2020/10/19/how-to-write-great-unit-tests/