GitHub Copilot Certification — Question 35
When using GitHub Copilot Chat to generate unit tests, which slash command would you use?
Answer options
- A. /generate-tests
- B. /tests
- C. /create-tests
- D. /init-tests
Correct answer: B
Explanation
The correct command for generating unit tests in GitHub Copilot Chat is /tests, as it directly instructs the tool to create the necessary test cases. The other options, while plausible, do not correspond to the specific command needed for this function.