Reviewing and validating automated test effectiveness

automation testing quality
Reading time: 1 minute, 39 seconds

I just remembered an older twitter thread about the measurement of test effectiveness and what actions should be taken if tests are not valuable anymore. This is my opinion.

Automation is a vital part of our test strategy. However, it is not something that is implemented once and then running forever. While the application under test is evolving, your automated test suite has to evolve along with it.

Test Automation vs Application

Any serious automation project should be treated like any other software project - it has to be refactored, extended, upgraded or even ported to a completely different technology. During these processes, the test scenarios (and their implementation) need to be reviewed regularly.

Practices that are natural to driving the application under test should be just as natural for their tests, e.g. code reviews, planning sessions, and retrospectives.

Reviewing test effectiveness

Tests can be more or less effective depending on different factors:

  • How reproducible are the test results?
  • How long are they running?
  • How much maintenance effort is needed?
  • How clear is the observation?
  • How trustworthy are the tests?
  • How valuable is the feedback?

While all those points are important, the main criteria for the most difficult decision about the future of a test case is maintenance versus value.

So what does this mean for your tests?

Establish processes

It is important to set up the necessary steps for dealing with scenarios that need maintenance and especially flaky tests. When just dealing with them ad-hoc, eventually this will lead to a test suite that is trusted less over time and eventually ignored completely.

Typically, we do it like this:

process

This is not the complete process as I just wanted to illustrate the main idea here.

Let it go, let it go...

Whenever a test is failing multiple times and it is not quick to fix, it is generally reviewed against the criteria I mentioned above.

This has to be done regularly as it keeps the test suite fresh, fast, responsive and meaningful.

Previous Post Next Post