@ -6,6 +6,7 @@ title: Unit Tests
|
|||||||
Unit testing is a type of testing which is found at the bottom of the software testing pyramid.
|
Unit testing is a type of testing which is found at the bottom of the software testing pyramid.
|
||||||
It involves breaking the codebase down into smaller parts (or units) and testing those in isolation.
|
It involves breaking the codebase down into smaller parts (or units) and testing those in isolation.
|
||||||
Depending on the type of programming language (or paradigm) these can be against anything you define as a unit, although the most common practice is against functions.
|
Depending on the type of programming language (or paradigm) these can be against anything you define as a unit, although the most common practice is against functions.
|
||||||
|
A unit is often seen as the smallest piece of your code that can be accurately tested.
|
||||||
|
|
||||||
### Why do it?
|
### Why do it?
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user