Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run MATLAB unit tests in parallel

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?

like image 539
Joe C Avatar asked Feb 11 '26 15:02

Joe C


1 Answers

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

like image 81
Andy Campbell Avatar answered Feb 14 '26 03:02

Andy Campbell