The role of simplicity in testing and automation

e · l · n

Disclaimer: Don't take this too seriously ... this is "thinking-in-progress" :)

It just struck me the other minute, how simplicity is the key theme behind two very important areas in software development, that I've been dabbling with quite a bit recently: Testing, and automation.

Have you thought about how testing, in its essence, is: Wrapping complex code, which you can't mentally comprehend completely, in simple code, that you can mentally comprehend, at least one test at a time. Because, after all, if you can't easily comprehend your test code, as to make sure it is correct, by simply looking at it, you will have to create even simpler tests that test your tests!

In a similar way, we need to make automation code simple - again, wrapping our complex code, in simpler code - for it to give us any gains. Otherwise, we will fall into this common problem:

Image Credit: XKCD

That is, if the motivation behind automation is to make things easier and less time consuming, it has to be simpler, not under the hood, but in the interface towards you as developer and maintainer.

About Bionics IT

Bionics IT currently serving as a research and development blog for Samuel Lampa, a PhD student (Pharmaceutical Bioinformatics at Uppsala University).

Find me elsewhere on the web:

A shameless little plug

Do you want to get faster on using the commandline? ... and help me pay my linode and and domain fees at the same time? :)
Then feel free to check out my
commandline productivity course!

Latest posts