The Testing Pyramid
Testing Pyramid
How much should I do of each (unit, integration, system testing)
Diagram → Focussed on cost
Unit testing
A unit can be a method or consist of multiple methods → achieve one single logical purpose
Advantages
Disadvantages
When to write
System Testing
Run the entire software system; with database, front-end and all other components
Alternative name is
Black Box Testing
Advantages
Disadvantages
When to write
Integration Testing
Used when we need something more integrated ( or less isolated ) than a unit test but without the need of exercising the entire system
Test multiple components of a system together
Advantages
Disadvantages