I’ve spent plenty of time writing test plans to meticulously check the satisfaction of every software requirement for a medical device. Running through such a single test plan for a reasonably complex medical device can take hours. There will probably be dozens of test plans. Fully running tests, assuming everything goes perfectly, can take a week or more.

If all of your tests are manual, they are time-consuming.

If they are time-consuming, they are also expensive.

If they are expensive, you won’t want to do them often.

If you don’t want to run tests often, you either:

If you don’t make changes, you won’t adapt to evolving requirements.

If you won’t adapt to evolving requirements, your device will suffer from waterfall syndrome, failing to incorporate any of the lessons you learn during development.

We all know that requirements change constantly during development, so that means we don’t rerun our time-consuming, expensive, manual tests every time there is a change.

If we don’t run our tests when there’s a change, we don’t know whether we’ve introduced new bugs.

Tada! We aren’t really testing.

Automated tests, on the other hand, run constantly, completely, and automatically on every single code commit.

Are there downsides to automated testing? Of course. I’ll explore that next time.

But… I’m certain that automated unit tests need to be a part of your arsenal.

Happy developing!