ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 122 - CTAL-TTA discussion

Report
Export

A unit test should be isolated Which option correctly describes the meaning of 'isolated' as a characteristic of a unit test?

SELECT ONE OPTION

Whenever it is run under the same conditions, it should produce the same results.

A.
It should only test the functionality related to it.
Answers
A.
It should only test the functionality related to it.
B.
it should provide immediate feedback.
Answers
B.
it should provide immediate feedback.
C.
It should test only the code for which it was originally written
Answers
C.
It should test only the code for which it was originally written
Suggested answer: C

Explanation:

The term 'isolated' as a characteristic of a unit test means that it should test only the code for which it was originally written. This ensures that the unit test is focused, minimizes dependencies on other parts of the codebase, and errors can be traced back to specific units without ambiguity .

asked 18/09/2024
Sarah Pachowsky
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first