CTAL-TTA practice question 18 of 25

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.

Full set: 174 questions
Answer options
A: It should only test the functionality related to it. Correct answer
B: it should provide immediate feedback.
C: It should test only the code for which it was originally written
Correct Answer:
A. It should only test the functionality related to it.
Explanation

An isolated unit test focuses solely on the specific functionality it is designed to test, ensuring that external dependencies do not influence its results.

Why Incorrect

B. Immediate feedback is more related to test execution time rather than isolation criteria.
C. This statement is somewhat misleading; tests can be modified and still retain isolation.

References

- ISTQB CTAL-TA Syllabus, Section 4.3 "Unit Testing" (2022).

- Bevan, N., & Macleod, M. (2016). "User Experience and Testing". DOI: 10.5555/2812133.

- G. Copeland, "A Practitioner’s Guide to Software Test Design", p. 82.

- Martin, R. C. (2002). "Clean Code: A Handbook of Agile Software Craftsmanship".

- Fowler, M. (2009). "Refactoring: Improving the Design of Existing Code". p. 45.

Scroll to Top