Interact with the Test Browser GUI programatically?
Show older comments
test_path = "<project_root>/tests/"
This file is automatically added to the project search path by a startup script. I like the Test Browser panel in the GUI, however I find that each session I have to manually add my tests to the browser by clicking the "plus" icon and selecting my test path in the selection window.
Is there a way to modify my project settings or the startup script to automatically populate the Test Browser panel with my tests?
Answers (2)
This does not seem to be possible -- the Test Browser GUI appears to be totally without any API interface and designed to be transient in that it doesn't retain prior state on restart.
Seems like a worthy enhancement to remove an annoyance, indeed...
Anjana Krishnan
5 minutes ago
0 votes
You can use the "testBrowser" API to open the test browser. There are currently no APIs to control the actions within the test browser, however. The "testBrowser" API simply launches the test browser and can be added to your startup script.
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!