Test del codice generato
Eseguire test del codice integrato, codice C e codice di release precedenti
È possibile creare ed eseguire test per verificare il codice generato, il codice scritto manualmente e il codice generato in una release precedente. È inoltre possibile utilizzare MATLAB Unit Test Framework per testare modelli e codice.
Funzioni
sltest.CodeImporter | Import C or C++ code into Simulink for testing |
sltest.CodeImporter.SandboxSettings | Sandbox settings for C code testing |
createSandbox | Create sandbox for C code unit testing |
Argomenti
- Importing and Testing Custom C/C++ Code
You can test custom C or C++ code by importing it into Simulink® using the Code Importer wizard in the Test Manager or API commands at the MATLAB® command line.
- Test Integrated Code
Test code integrated in a Simulink model using C Caller blocks or S-Functions.
- Test Models Using MATLAB Unit Test
Test integration with MATLAB test scripts.
- Code Generation Verification Workflow with Simulink Test
Perform code generation verification for a model.
- Test Execution Order
Order in which models load, and test cases, iterations, and callbacks run.
