Before even go further, I must emphasize that even though I’ve listed this under the Software Testing 101 article series, This is not a testing type performed by the QA Engineers. Unit testing is performed by Developers.Unit Testing : In this phrase, a unit can refer to a function, individual program or even procedure. Biggest advantage is that by performing this, we can identify the whether the application functions as designed in the early phase. Also it can be run every time a piece of code is changed.
Bugs can be found early as possible by adding unit testing to the software development process ( or even to the CI : Continuous Integration process ). Unit tests normally runs on every day, So whenever there is a code break, It will notify to the relevant party, before it goes to the QA team.