🔥 3-day streak
GitHub Copilot93 / 190
Question 93 of 190

A backend developer is adding Copilot-generated unit tests for a service class whose methods all depend on an in-memory cache that must be initialized before each test and cleared afterward. Copilot's first draft duplicates the cache setup and teardown code inside every individual test method. What is the most effective way to prompt Copilot to improve the generated test suite while keeping the tests correct?

Reviewed for accuracy · Report an issueNext question