Software Testing is a must but it’s surprising why so few developers do it.

Why is software testing a must?

Because it helps you ensure your code against certain bugs.

Think of testing as insurance.

Suppose you have insured your health, your life, your home, and your car.

Won’t your life be peaceful then?

If your car gets in an accident, you are secured.

If your home suffers damage due to a storm, you are secured.

Testing is the same.

It helps you insure your codebase against certain bugs.

Eg - let’s assume you are working on a social media product.

One test could ensure that your social media app doesn’t allow posting empty posts.

Another test could ensure that your backend can handle large photo uploads (> 20M).

And yet another test could ensure that your app doesn’t allow creating multiple profiles with the same number.

And so on.

Knowing that these tests are running successfully, you can be sure that you won’t have these bugs in the future.

If these tests fail, you will know instantly and so you will fix it.

This peace of mind is similar to insurance. So I compare it with that.

If you want to learn more about testing, I have written a concise article on my website.

Check it out.

https://aviaryan.com/blog/testing-ideas