Interact with the Test Browser GUI programatically?

31 次查看(过去 30 天)
Kory
Kory 2026-1-30,22:34
移动dpb about 8 hours 前
I have a matlab project that contains a folder for of test classes at
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?
Thanks for the responses. Please note that I am NOT asking how to run tests or create test suites programatically here - I know how to do that using the testsuite and run- I'm specifically intersted in making the Test Browser panel populate automatically with my tests.

回答(1 个)

dpb
dpb 2026-2-1,15:50
移动:dpb about 4 hours 前
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...

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by