🔥 3-day streak
GitHub Copilot154 / 190
Question 154 of 190
A developer is using Copilot Chat to generate unit tests for several functions in a service class. When asked with a simple instruction like 'write tests for this function,' Copilot produces tests that vary widely in structure, naming conventions, and assertion style across each function. The team has a strict, established test format (Arrange-Act-Assert with specific naming). Which prompting technique will most reliably make Copilot produce tests that consistently match the team's format?
Reviewed for accuracy · Report an issueNext question