Unit tests FTW! — Part 4

Cross posted on LinkedIn

In the previous three parts of this series, I have talked about how unit tests are useful in a lot more than just verifying that your code works. We’ve talked its uses for documentation, refactoring and code health, and writing better software. Next, we’ll see how unit tests helps you debug issues in production.

Continue reading “Unit tests FTW! — Part 4”

The merits of unit tests — Part 3

Cross posted on LinkedIn.

Previously, I talked about how unit tests serve purposes other than verifying code functionality; I talked about unit tests serving as defacto documentation, and unit tests helping you refactor without fear. In this post, I’ll talk about yet another benefit to unit tests: writing better software.

Continue reading “The merits of unit tests — Part 3”

The merits of unit tests — Part 2

In the previous post, we saw how unit tests can serve as a reliable source of documentation for your code. There is a lot more that unit tests can do for you. In this post I’ll talk about a fairly obvious, but often ignored, benefit to unit testing: Refactoring.

Continue reading “The merits of unit tests — Part 2”

My code is bugfree! Why should I unit test?

There are multiple reasons to write unit tests. Verification is only one of them, and the least interesting. This is part 1 of a five part series on why you should write unit tests (apart from the obvious): Documentation!

Continue reading “My code is bugfree! Why should I unit test?”