Good vs. Bad Tests: How Unit Testing Drives Sustainable Software Development

Tomas Svojanovsky
3 min readOct 20, 2024

In the previous article, we discussed the importance of tests in a project. Now let’s discover that not all tests are created equal.

The situation is not simply about whether I have tests or not; I can also have good tests and bad tests.

Although unit testing helps maintain project growth, it’s not enough to just write tests. Let’s take a look at the image to see what bad tests look like.

Good vs. bad tests

The Value of Tests

It doesn’t make sense to test everything in the app. You should focus on the most important parts and areas where bugs often occur. This is because some tests are valuable and contribute significantly to overall software quality, while others do not. Tests vary in the time they take to write and maintain. You could spend days testing the color of a button, but miss whether login and logout…

--

--

Tomas Svojanovsky

I'm a full-stack developer. Programming isn't just my job but also my hobby. I like developing seamless user experiences and working on server-side complexities