GitHub Copilot Certification — Question 31
Why is code reviewing still necessary when using GitHub Copilot to write tests?
Answer options
- A. Because GitHub Copilot can cover all possible scenarios in your test cases.
- B. Because GitHub Copilot generates the best code possible for the test scenario.
- C. Because GitHub Copilot’s generated test cases may not cover all possible scenarios.
- D. Because GitHub Copilot replaces the need for manual testing.
Correct answer: C
Explanation
The correct answer is C because GitHub Copilot, while helpful, may not generate test cases that account for every edge case or scenario, necessitating human oversight. Options A and B incorrectly assume that Copilot can comprehensively address all scenarios and produce flawless code, which is not always the case. Option D is misleading as it suggests that Copilot can fully replace the need for manual testing, which is not true.