Question 280
A vague request for tests produces only sunny-day checks. Which recommendation best addresses the stated constraint?
Explanation
Correct Answer
Explicit coverage categories counter incomplete happy-path generation. Acceptance evidence: The reviewed suite includes failure and boundary assertions.
Incorrect Answers
Scope restrictions help maintain code reviewability. That recommendation is relevant to a different task: A request for a security fix allows broad changes that are hard to review. In this case the main need is: A vague request for tests produces only sunny-day checks.
Structured examples make coverage expectations concrete. That recommendation is relevant to a different task: A tester wants table-driven tests for a date parser. In this case the main need is: A vague request for tests produces only sunny-day checks.
Few-shot documentation context can establish required structure. That recommendation is relevant to a different task: A user wants Copilot to document a function in a particular format. In this case the main need is: A vague request for tests produces only sunny-day checks.