Sounds like using Pilot or ChatGPT for coding - no understanding of the situation/problem, just add some code that makes the error message go away :(
And note that writing the complete and correct test suite is likely to be a task of similar difficulty to designing and writing good code! I'm not saying don't test, but I am saying that non-trivial testing is difficult.