MATLAB: How to rebuild a test harness linked to a library block

buildsimulinksimulink test

Best Answer

This is currently a limitation within the software. Test harnesses can only be rebuild if they are linked to a model and not when built of a library block.
The suggested workaround would be to test a model that includes the library block. This way the model can reflect any changes made within the library and the model harness can be rebuilt to reflect those changes.
Related Question