DevOps & Tooling / Knowledge library
Unit Testing
Checks a small behavior in isolation with fast deterministic feedback
Why learn Unit Testing?
It localizes defects and supports safe refactoring
The problem it solves
It verifies component logic without requiring the full deployed system
Where it came from
Unit Testing is a software testing technique that checks a small behavior in isolation with fast deterministic feedback. Its guarantees and tradeoffs depend on the concrete implementation and operating context.
Build your understanding
Work through these exercises in order. Try the task before opening a reference.
- Define Unit Testing and distinguish it from a neighboring concept.
- Choose a realistic task where Unit Testing is appropriate.
- Identify a failure mode caused by misusing Unit Testing.
- Interpret a small design or result involving Unit Testing.
- Explain one tradeoff or limitation of Unit Testing.
Documentation and sources
- ISTQB Glossary (glossary.istqb.org)