Sorry, perhaps I should have clarified what I meant by “white-box testing”. What I am trying to do is not unit testing, it is more like integration testing
- Injecting fault conditions by breakpointing and modifying variables
- Simulating hardware faults
- Checking that certain code paths are executed when system input occurs
We already use Unity for unit tests which works fine, but obviously it only tests isolated software components, not the software application as a whole. That is what this integration testing is intended to do, and why we ideally need to be able to write scripts to automate this procedure.