Interact with the Test Browser GUI programatically?

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.

Respuestas (2)

dpb
dpb el 1 de Feb. de 2026
Movida: dpb el 3 de Feb. de 2026
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...

3 comentarios

Jennifer
Jennifer el 9 de Mayo de 2026
I also would be interested in this feature.
Stephen23
Stephen23 el 10 de Mayo de 2026
@Jennifer: you can make enhancement requests here:
Jennifer
Jennifer el 10 de Mayo de 2026
Done! Thanks!

Iniciar sesión para comentar.

Anjana Krishnan
Anjana Krishnan el 18 de Ag. de 2026 a las 14:22
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.

Productos

Versión

R2025b

Preguntada:

el 30 de En. de 2026

Respondida:

el 18 de Ag. de 2026 a las 14:22

Community Treasure Hunt

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

Start Hunting!

Translated by