Sign in Go Pro

Mockito

What Makes a Good Unit Test

 

Up next

Previous

About

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.

Instructor

Links

Lessons in Mockito