In this framework
http://www.mathworks.com/help/matlab/matlab-unit-test-framework.html?refresh=true
I found MATLAB could run test cases from the same matlab.unittest.TestCase in parallel by
run(MyTest);
If MyTest is inherited from matlab.unittest.TestCase.
How to run multiple matlab.unittest.TestCase classes in parallel?
If you have R2015a or later you can use the runInParallel method of the TestRunner. If you have R2015b or beyond access to that is even easier with the runtests ‘UseParallel’ option.
Also, even if you have earlier versions, these blog posts describe how this can be done along with various scheduling tradeoffs:
Encouragingly Parallel - Part 1
Encouragingly Parallel - Part 2
Encouragingly Parallel - Part 3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With