What I wish I knew when I became CTO
> I’ve found it a real struggle to get our team to adopt writing tests.I find this hard to believe. Do others CTOs / team leads find this to be the case?I've been a CTO of two small startups with 3-7 developers. We've had resistance to tests at some points (myself included). We've solved it fairly simply. All pull requests (PRs) require tests. PRs are rejected immediately without tests. If a PR doesn't have tests and it is critical to get in, we open a new ticket to track adding tests. It isn't fool proof, but it does result in a high degree of test coverage.And once developers understand how and where to write tests, they usually see the benefit quickly and want to write more tests.