testing-simulink-models

Generate Gherkin-based pass/fail tests for Simulink models using model_test.

917|94|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill testing-simulink-models
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-simulink-models
Source: https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/model-based-design-core/testing-simulink-models
Command: npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill testing-simulink-models

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires model_test, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of persistent Gherkin-based pass/fail tests for Simulink models, making it easier to verify expected behavior, write regression tests, and validate bug fixes.

Core Features & Use Cases

  • Persistent Tests: Creates reusable pass/fail tests for Simulink models and subsystems.
  • Gherkin Syntax: Uses Gherkin syntax for writing test scenarios, making them human-readable.
  • Integration with Simulink Test: Integrates with Simulink Test for comprehensive testing capabilities.
  • Use Case: Ideal for engineers who need to ensure that their Simulink models behave as expected and for automating the testing process in continuous integration workflows.

Quick Start

Use the testing-simulink-models skill to create a test for the 'model.slx' Simulink model.

Frequently Asked Questions about testing-simulink-models

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Simulink model testing for pass/fail verification?

Automating Simulink model testing involves generating persistent Gherkin-based pass/fail tests that verify expected behavior and validate bug fixes. This process uses model_test for verification and integrates with Simulink Test to provide structured assertions and decision coverage metrics.

What are the benefits of using Gherkin syntax for Simulink Test scenarios?

Using Gherkin syntax for Simulink Test scenarios makes test cases human-readable and creates reusable, persistent pass/fail tests. This structured format helps engineers write clear regression tests and validate bug fixes effectively within their continuous integration workflows.

Do I need Simulink Test and Gherkin syntax knowledge to automate model testing?

Yes, you need Simulink Test and Gherkin syntax knowledge to automate model testing effectively. This testing process requires the model_test dependency for verification and is specifically designed for engineers already working within the Simulink environment.

Can I use Gherkin-based tests for Simulink model regression testing in CI workflows?

Yes, you can use Gherkin-based tests for Simulink model regression testing in continuous integration workflows. The automated tests are persistent and reusable, making them ideal for verifying expected model behavior and validating bug fixes during automated CI processes.

What is the best way to write structured assertions for Simulink subsystems?

The best way to write structured assertions for Simulink subsystems is by using Gherkin syntax to create persistent pass/fail test scenarios. This method integrates with Simulink Test to verify expected behavior and generate decision coverage metrics for your models.