GitHub Copilot Certification — Question 21
How can GitHub Copilot be limited when it comes to suggesting unit tests?
Answer options
- A. GitHub copilot can generate all types of unit tests, including those for edge cases and complex integration scenarios
- B. GitHub Copilot primarily suggests basic unit tests that focus on core functionalities, often requiring additional input from developers for comprehensive coverage.
- C. GitHub Copilot can handle any complexity in code and automatically generate appropriate unit tests.
- D. GitHub Copilot’s limitations in generating unit tests can vary based on the IDE version you are using.
Correct answer: B
Explanation
The correct answer is B because GitHub Copilot is designed to provide basic unit tests that cover essential functionalities, often needing further developer input for more thorough testing. Options A and C incorrectly imply that Copilot can generate comprehensive tests without limitations, while D suggests variability based on IDE versions, which is not the core limitation of Copilot itself.