Main Content


Return names of unit tests of subsystem file

Since R2023a



unitTests = Simulink.SubsystemReference.getUnitTestNames(name) returns the names of the test harnesses that are selected as unit tests of the subsystem file name.


collapse all

tests = Simulink.SubsystemReference.getUnitTestNames('slexReusableSS')
tests =

  1×2 cell array

    {'ssref1_double'}    {'ssref1_int32'}

Input Arguments

collapse all

Name of the subsystem file, specified as a string or character vector. You can also specify the handle of the subsystem file.

Example: 'slexReusableSS'

Data Types: char | string

Output Arguments

collapse all

Names of unit tests of the subsystem file, specified as a cell array.

Data Types: cell

Version History

Introduced in R2023a