I am trying to write unit tests for a function requiring user input in Matlab. I have figured out how to control keyboard input using the robot module from Java, but I am uncertain how to "inject" this into the running function during the test process. Do I need to add in an optional function argument in the original function being tested to facilitate this process?
Aucun commentaire:
Enregistrer un commentaire