#58 - Principles for Writing Valuable Unit Tests - Vladimir Khorikov
“The main goal of unit testing is to enable sustainable growth of your software project that enables you to move faster with a more quality code base." Vladimir Khorikov is the author of “Unit Testing: Principles, Practices, and Patterns” and the founder of Enterprise Craftsmanship blog. In this episode, we discussed in-depth about unit testing. Vladimir broke down the four pillars of unit testing and the anatomy of a good unit test, as well as mentioned a couple of common unit testing anti-patterns. We also discussed topics such as test-driven development, code coverage and other unit testing metrics, test mocks and how to use it properly, and how to be pragmatic when writing unit tests. Listen out for: Career Journey - [00:05:32] Unit Testing - [00:08:20] The Goal of Unit Testing - [00:11:34] Test-Driven Development - [00:12:55] Code Coverage & Other Successful Metrics - [00:17:35] Pragmatic Unit Tests - [00:21:04] 4 Pillars of Unit Testing - [00:23:40] Anatomy of a Good Unit Test - [00:3