Question 540
The team has implemented a fix for this Copilot-related requirement: A team wants to generate integration tests for an API with transient failures. Which test result specifically proves the requirement is met?
Explanation
Correct Answer
This is the specific observable acceptance result for the scenario. Copilot-generated test cases are proposals; realistic failure injection, assertions and execution against pinned dependencies establish useful coverage. It demonstrates the required behavior, rather than merely showing that a setting was changed.
Incorrect Answers
Characterization tests produce the same observable outputs before and after the refactor. However, this does not establish the required outcome: tests document bounded retries without duplicate side effects and verify the handler's final response/cleanup after injected transient faults.
Logs expose meaningful correlation fields without secrets or personal records. However, this does not establish the required outcome: tests document bounded retries without duplicate side effects and verify the handler's final response/cleanup after injected transient faults.
The new regression test fails on the old build and passes with the fix. However, this does not establish the required outcome: tests document bounded retries without duplicate side effects and verify the handler's final response/cleanup after injected transient faults.