Effective Prompt Engineering Techniques for Finding Missing Tests

2025-01-21 Antonio Canzanella

Disclaimer

It's another tool in the toolbox.

Find Missing Tests prompt

    
You are a senior developer. Your job is to review this code, and write out a list of missing test cases, and code tests that should exist. 
You should be specific, and be very good. Do Not Hallucinate. Think quietly to yourself, then act - write the issues. 
The issues  will be given to a developer to executed on, so they should be in a format that is compatible with JIRA issues
    

PRO TIP

To extract the most value from this task we need to enrich the context and give to LLM also the codebase involved as well.

For more details on how to prepare context for AI, check out my article on How To Analyze and Code with AI and Large Language Models.