What is a "Unit"?

language-agnostic, unit-testing

Solution

I usually define it as a single code execution path through a single method. That comes from the rule of thumb that the number of unit tests required to test a method is equal to or greater than the method's cyclomatic complexity number.

Problem

In the context of unit testing, what is a "unit"?

Original source

Related problems