It's a completely stupid situation, because programmers are simultaneously bad at tests and (in theory) much more expensive, so telling them to perform tests like that is a waste on every level.
Joel Spolsky warned about that 16 years ago: https://www.joelonsoftware.com/2010/01/26/why-testers/