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_codetool to run MATLAB commands. Fall back tomatlab -batchonly if the MCP server is not available. - Use buildtool for CI — When running tests in CI/CD, always use
buildtoolwith abuildfile.m. Do not use manualruntestsorTestRunnerscripts 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