TestIteration timeout in TestManager

Hello,
I am running a testManager having few testSuites, and each testSuite have a testCase with few TestIterations.
When running the TestManager a single TestIteration takes usually about 10min to complete, but in some cases the solver(my personal one) moves to smaller step size and the time for computation goes to 24+h per testIteartion. I do not want to spend 24h for a single step/testIteartion, but rather to skip it if it takes longer then 10min.
Is there a way to add a timeout in the TestManager/TestSuite for the testIteartions? If it takes more then 10min to just move to the next testIteartion with a message.
I was looking for this solution https://www.mathworks.com/help/matlab/ref/matlab.unittest.constraints.eventually-class.html but I am not sure I can add tic-tok inside the testManager.
I was also thinking to add timeout inside the TestSequence, but as simulation time stays at a given time step, while my solver is doing the computation for that time step, that is not working either.
Thank you for your help!

Risposte (0)

Prodotti

Release

R2024b

Richiesto:

il 15 Lug 2026 alle 15:06

Community Treasure Hunt

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

Start Hunting!

Translated by