AI Help
How do I give an AI coding agent a failing test to reproduce a software bug?
Provide a minimal reproducible input, the failing command and the expected behavior. Verify the agent can observe the failure before editing.
Steps to follow
- Describe the environment and exact steps needed to trigger the bug. Remove private data from the example.
- Supply a small test or fixture through the normal entry point and specify the expected result.
- Have the agent run it, apply the smallest suitable fix and rerun the relevant checks. Keep the original failing evidence.
Example in practice
Illustrative example. A date parser bug can be reproduced with one ambiguous date and the application's explicit locale setting.
Related AI help
- How do I check whether an AI coding agent actually ran the tests it reported?
- How do I get an AI coding agent to add a regression test for an existing bug?