coder.profile.test.generateTests
Syntax
Description
generates decision coverage test cases for the specified model by using Simulink®
Design Verifier™. The function ensures 100% decision coverage. It saves the generated test
cases in both a MAT data file and a Simulink
Test™ compatible MLDATX file. It also generates an harness to run the test file in
the current folder.decisionCoverageTest
= coder.profile.test.generateTests(modelName
)
If you have a Simulink Test license, you can use the MLDATX file for execution-time analysis. If you do not have a Simulink Test license, you can import the tests in the MAT data file to your model as inputs and use those for analysis. For more information on importing data into a model, see Overview of Signal Loading Techniques and Load Input Data for Basic Test Cases. To generate test cases, this function can change model parameter settings which are restored back to the original settings after test generation. In such cases, you get a warning message.
specifies additional name-value arguments. Use this syntax with the input argument in the
preceding syntax.decisionCoverageTest
= coder.profile.test.generateTests(modelName
,Name=Value
)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2024a