DEV Community

Discussion on: The value of unit testing

Collapse
 
klamping profile image
Kevin Lamping

" If I hadn’t written a unit test to test for this scenario, it would have been missed."

That line really stands out to me. I think it's easy to see "unit testing" as just another item on your checklist of things to do, but really we need to focus on the value it provides: catching errors that we'd otherwise miss with our manual checks.

Unit testing really is great at checking our code against a variety of data points, something difficult to do with just manual checks.

Glad you saw the light :)