1. 程式人生 > >Ask HN: What is a unit test?

Ask HN: What is a unit test?

I'll admit that I did not take a course (or a course I took didn't cover) unit testing. I'm a little bit "wet-behind-the-ears" on this topic. How do you define unit tests for what you do? How can I learn more about how to write and use them (well)? Was there ever a time when they saved you?