When the project reaches a certain level of maturity, I write unit tests. My largest project MoasdaWiki [1] has 468 tests.<p>[1]: <a href="https://gitlab.com/moasdawiki/moasdawiki-server" rel="nofollow">https://gitlab.com/moasdawiki/moasdawiki-server</a>