QA Fundamentals · Junior · Question 12 of 75

What does a unit (component) test check?

Show the answer

Correct answer: A small piece of code, such as a function, in isolation

Explanation

Unit tests are fast and pinpoint failures. Dependencies are often replaced with test doubles so that only the unit itself is checked.

Further reading

Problem with a question

QA Fundamentals · Junior · question 12

Test yourself

Take the QA Fundamentals · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz