Testing · Junior · Question 10 of 78

What should a test check - behaviour or implementation details?

Explanation

Tests tied to implementation details fail on safe refactors (false negatives) and can pass when the user-visible result is broken (false positives).

Further reading

Problem with a question

Testing · Junior · question 10

Test yourself

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

Take this quiz