Sign in Go Pro


What Makes a Good Unit Test


Up next



This lesson describes the various characteristics of a good unit test.

In this lesson you will learn:

What makes a test a good unit test
Introduction to phrase “test doubles”
Why a unit test should be fast to execute
Why the outcome of a unit test should give you the same result every time the test is run
Why the unit test shouldn’t rely on components external to the test which could be in an invalid state and cause unexpected failures in the test
What is a “unit”? How many classes should a unit test interact with.




There are no comments on this lesson, start the conversation below ...

You need to go PRO to post comments.

Lessons in Mockito