Unit Testing
Definition
Unit testing focuses on testing individual components or modules of the software in isolation.
Purpose
To verify that each unit works as expected independently.
Tools
JUnit, NUnit, TestNG, PyTest.
Example
Testing a login function to ensure it returns correct results for valid and invalid inputs.