The Definitive Guide to Unit Testing, Chapter 2: How to measure coverage

The Definitive Guide to Unit Testing, Chapter 2: How to measure coverage

If you’re read Chapter 1 of the Definitive Guide to Unit Testing, then you already know the basics of unit testing and may have even created your first unit test. You’re probably wondering how these tests can combine to create a comprehensive test suite (and how many of these tests you’ll need to write). In this chapter, we’ll talk about code coverage and how to measure it.

Shift left, meet targets, obey demands. Do you regret becoming a developer yet?

Shift left, meet targets, obey demands. Do you regret becoming a developer yet?

If I asked a room full of seasoned developers why they chose their profession, I bet I would hear things like “I enjoy writing code,” “I enjoy problem-solving,” “I like building new products.” In the early days, I suspect software development was just what they hoped for: spending time fixing the code, adding new features, and being proud of their accomplishments. So what’s changed?