Introduction
Unit tests check small parts of your code to make sure they work correctly. Running these tests automatically in a pipeline helps catch problems early before the code is shared or used.
When you want to verify that new code changes do not break existing features before merging.
When you want to automate testing so developers get quick feedback on their work.
When you want to ensure code quality by running tests on every code update.
When you want to prevent broken code from being deployed to production.
When you want to keep a history of test results for your project.