Do automated tests make software error-free?
Automated tests do not make software error-free; they check defined cases and show whether these work as expected. Functional review, approvals and a rollback path remain important.
Background
An automated test is a small program that calls a function with specific inputs and compares the result with an expectation. If it runs with every change, it becomes apparent immediately when something breaks that used to work. This saves manual checking and makes changes easier to plan.
The limit lies in the choice of cases. A test only checks what someone has described as a case beforehand. A misunderstanding in the requirement, an unusual workflow in daily use or a combination nobody thought of stays undetected. Even a test that always passes can be of little value if it does not check what really matters.
Whether existing tests detect errors at all can be measured. With mutation testing, errors are deliberately inserted into the code. If the tests then do not fail, the protection is weaker than the number of tests suggests.
Alongside tests, functional review by people who know the workflow, an approval before release and a prepared rollback path in case an update still causes problems therefore remain important. In a deployment pipeline, a change may only be released after the agreed tests and the required approval.
What this means for you
On a software project, ask not only whether there are tests but which cases they cover and who gives functional approval. That shows you how well an update is safeguarded before it reaches your users.
Limits and prerequisites
- We agree with you which cases are tested; anything not described is not checked by any automated test.
- To add tests to existing software, we need the source code and the current update process.