Question 630
A Copilot-assisted software team encounters the following situation: A user asks a code assistant to improve tests but supplies only the desired coverage percentage. Which action should the team choose first to satisfy the stated need?
Explanation
Correct Answer
Good prompts describe what must be verified, not only an output metric. The proposed action directly addresses the identified need: A user asks a code assistant to improve tests but supplies only the desired coverage percentage. A suitable acceptance check is: The new tests fail on relevant defects rather than merely increasing line coverage.
Incorrect Answers
The prompt did not specify the required output shape and constraints. The specific problem here is that numeric coverage was substituted for behavior-based requirements.
The long task had no staged plan or verification constraints. The specific problem here is that numeric coverage was substituted for behavior-based requirements.
The request relied on unspecified outside knowledge instead of supplied evidence. The specific problem here is that numeric coverage was substituted for behavior-based requirements.