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

  1. Describe the environment and exact steps needed to trigger the bug. Remove private data from the example.
  2. Supply a small test or fixture through the normal entry point and specify the expected result.
  3. 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

Official guidance

OpenAI documentation