> If there's only developers who test their own code then they're not incentivized for finding the ways their code breaks.
It totally depends. In many cases it will come back to the original developer if their code breaks in production. That is a lot of incentive to test as thoroughly as possible before releasing.