![rw-book-cover](https://readwise-assets.s3.amazonaws.com/static/images/article4.6bc1851654a0.png) ## Metadata - Author: [[mental-reverb.com]] - Full Title: The Day I Started Believing in Unit Tests - Category: #articles - URL: https://mental-reverb.com/blog.php?id=42 ## Highlights - It's very hard to write Unit Tests for embedded firmware and hardware abstractions because the very thing you want to test is the interaction with the hardware, which is precisely what you can't do in pure code. Because the test ran automatically and always succeeded, we all soon forgot about it and moved on to other things. ([View Highlight](https://read.readwise.io/read/01hjx4x42p5t2jgpf72w4yvnns)) - ![](https://mental-reverb.com/img/believeinunittest_comix-1.gif) ([View Highlight](https://read.readwise.io/read/01hjx4zvg8tv5a44rm1jqcarb5)) - Whenever you encounter a bug, ask yourself the following three questions: 1. Have I made this error anywhere else? 2. What happens when I fix the bug? 3. How can I change my ways to make this bug impossible? ([View Highlight](https://read.readwise.io/read/01hjx50jtkmxze4j57cg8csrxx))