A pseudo-TDD workflow using expected failures, wherein I describe how you can use xfail and VCS history rewriting to make a TDD history even if you didn’t do TDD (this probably makes more sense once you’ve read the article):
https://blog.ganssle.io/articles/2021/11/pseudo-tdd-xfail.html