An automated test is not a magic enchantment that makes your code safe, it's just a check for some condition that is run automatically so you don't forget to do it.
If the check itself is written poorly, it will be useless or even wrong.
If the check itself is written poorly, it will be useless or even wrong.
Comments
And as long as this holds true, the tests will pass.
And if it won't... what can you do about it?
Worse yet, will you even *know* that you need to do something? You didn't write the tests, after all.
And you can't just fire the GenAI or train it like you can with a human.