Unit Testing
Unit testing is a software testing technique where individual components or units of code (like functions, methods, or classes) are tested in isolation to ensure they work as intended. It is usually performed by developers during the coding phase.
The main goal of unit testing is to verify the correctness of small code segments before integrating them into larger modules. It helps detect errors early, improves code quality, and makes maintenance easier.
Unit testing is often automated using frameworks such as JUnit (Java), NUnit (.NET), or PyTest (Python), allowing developers to run tests repeatedly whenever code changes are made.