Choosing what not to write automated tests for

While it’s important to make sure your test automation has good coverage, I think it’s also important to know under which circumstances you should not write automated tests.

In my opinion, when it comes to test automation, more isn’t necessarily better.

More tests don’t necessarily result in better coverage.

More tests don’t necessarily increase your chance of finding regression bugs.

More tests is just that. More tests.

When deciding what not to write automated tests for, I think it’s important to ask yourself a few things.

  1. What is your goal with your test automation?

Be specific and realistic about your expectations.

Come up with some specific examples of the types of regression issues that could come up and would be found from the test automation you have in place.

The best part of having a clear goal for your test automation is that it will guide you in knowing when and when not to write tests.

2. When deciding to add tests weigh the benefits of having the test against the costs

Is your test likely to find issues? Do you already have a test/ tests in place that would catch the issue(s) your possible test is designed to find?

3. Is this area of the app/website looking to change soon? If so, is it worthwhile writing tests for this area now or waiting a little bit?

A factor to consider here is how considerable the changes are looking to be and how far in the future changes for this area of the app/website will be.

Do you also write test automation? What makes you decide whether a test is or is not worth adding to your test automation suite?

Photo by Isaiah Rustad on Unsplash

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s