戻る
It is to enable sustainable growth of the software project
The only way to achieve the goal of unit testing
Tests act as a safety net
Without testing struggles to scale
The end result for projects with bad tests or no tests is the same
Value vs. Cost: Not all tests are equally valuable
Measuring Test Suite Quality (Coverage Metrics):
A unit test verifies a single unit of behavior
Does it quickly,
And does it in isolation from other tests
Classical: Test for behaviour 👍
London: Test for Code 👎
Goal of Unit Testing
Benefits
xxx:
Attributes of a Successful Test Suite
Definition of a unit test:
Two school: London vs Classical