Test management - Activity
Unit testing
Testing small individual pieces of code separately to check they behave correctly
What's it for?
Checks small pieces of code on their own so mistakes are found early while software is being built.
For example…
A test asserts that a discount function returns 10% off for loyalty members and zero otherwise.
A unit test gives a tax-calculation function known inputs and checks the exact result without starting the rest of the application
Think of it like…
Testing each brick for cracks before you build the wall