matlab-test-execution

Installation
SKILL.md

MATLAB Test Execution

Must-Follow Rules

  • Execute MATLAB via MCP — If the MATLAB MCP core server is available, use its evaluate_matlab_code tool to run MATLAB commands. Fall back to matlab -batch only if the MCP server is not available.
  • Use buildtool for CI — When running tests in CI/CD, always use buildtool with a buildfile.m. Do not use manual runtests or TestRunner scripts in CI.
  • Do not guess — If the test folder location, source folder, or desired output format is unclear, ask.

Running Tests

results = runtests('tests');                          % All tests in a directory
results = runtests('myFunctionTest');                  % Specific test file
results = runtests('myFunctionTest/testAddition');     % Specific test method

Filtering

Related skills

More from matlab/skills

Installs
20
Repository
matlab/skills
GitHub Stars
100
First Seen
Mar 22, 2026