Copilot Chat: Code Generation with Test-Driven Development
How CopilotChat Works
Developer1. Define Test Cases
- Define inputs and expected outputs.
- Provide an optional requirement description.
LLM2. Code Generation
- LLM generates code based on the test cases and requirement description.
Copilot Chat3. Validation
- Copilot Chat validates the generated code.
- If a test case fails, Copilot Chat iteratively interacts with LLM to refine the code until all test cases pass.
Define Test Cases
Requirement Description