Fast and slow is really a misnomer. We're really talking about "pure" unit tests, which are highly isolated from each other, and will require the use of mocks (unless the code follows a functional paradigm), or "impure" unit tests, which involve more dependencies.
<td>
Slower tests may discourage good tdd practice, refactoring etc.
</td>
</tr>
</tbody>
mocky/isolated tests | Non-mocky/ high-dependency / integratey tests | |
---|---|---|
speed | fast | slower |
bugs | only specific tests fail | many tests fail |
readability | Often less readable | can be overly verbose |
risk factors |
|