Which of the following statement is CORRECT about decision coverage?
Dễ4 phương ánCó lời giảiXuất hiện trong 1 bộ đề
A·B·C·DCác phương án trả lời
ADecision coverage is a measure of the percentage of possible paths through the source code exercised by tests
BDecision coverage is a measure of the percentage of business flows through the component exercised by tests
CDecision coverage is a measure of the 'if statements in the code that are exercised with both the true and false outcomes
Decision coverage is a measure of the proportion of decision outcomes in the source code exercised by tests
Đúng
Giải thích chi tiết
Decision coverage là một thước đo để đánh giá mức độ hoàn thiện của các thử nghiệm. Nó đo lường số lượng kết quả quyết định trong mã nguồn được thử nghiệm. Để đạt được quyết định hoàn toàn, mỗi quyết định trong mã nguồn phải được thử nghiệm với cả hai kết quả có thể xảy ra. Điều này có nghĩa là mỗi 'if' trong mã nguồn phải được thử nghiệm với cả hai trường hợp true và false. Điều này giúp đảm bảo rằng mã nguồn đã được thử nghiệm đầy đủ và giảm thiểu khả năng tồn tại của các lỗi.