Regression testing code that takes user input via the input() function
Show older comments
I have a convenience library/application that sometimes prompts a user for extra input from the command-line. An example might be:
>> connectToRemoteService(1,2,3);
You are now connected to the remote service. Tell it what you need!
MYSERVICE:>
The user might call several commands before returning to the MATLAB prompt.
I am currently exercising the back-end code for this library using the new matlab.unittest capability and am quite happy with it. But I'd like to also stimulate the code using the input() function. Is there a nice way for me to automate this in MATLAB?
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!