How do you force AI agents to write real edge-case tests instead of empty, passing mocks?

by•

I let an agent auto-generate unit tests for a complex module. It created 15 test cases, all green! But when I actually looked at the assertions, it was mocking everything into oblivion and testing getters and setters. How do you prompt agents to write rigorous, edge-case-heavy tests instead of vanity metrics?

3 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.