Generate and run MATLAB unit tests using matlab.unittest and matlab.uitest. Parameterized tests, fixtures, mocking, coverage analysis, CI/CD with buildtool, app testing with gestures.
SkillScore86Maintained
Automatic
◆QA & Test Engineering pack
Last verified 8/16/2026
What it changes
Passed 19 of 22 test cases with the skill, and 13 of 22 without it.
Without skill59%
With skill86%
Checks it passed that the model alone missed
Names the test class distanceConverterTest.
Names the test class calculateMatrixStatsTest.
Specifies invoking the run_matlab_test_file tool.
and 5 more in the full report
7 fixed12 passed either way2 still failing1 broke
Pass-rate lift
+27 pp
Tokens
+90%
Agent turns
0%
Response time
-42%
Model gemini-3.6-flashMeasured 8/16/2026v119 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 7
Prompt
I have created a test file `tests/signalFilterTest.m` in my project workspace. Which MCP tool should be invoked to execute this test file and collect test results?
What was checked, without and with the skill
Checked
Without skill
With skill
Specifies invoking the run_matlab_test_file tool.
Missed
Passed
case-19 · gemini-3.6-flash · 8/16/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md268 lines2 filesincludes scripts
Testing
Generate, structure, and run MATLAB unit tests using the matlab.unittest framework. Covers class-based tests, parameterized testing, fixtures, mocking, coverage analysis, CI/CD integration, and app testing via MCP.
When to Use
User asks to write tests for a MATLAB function or class
User wants to run an existing test suite
User needs coverage analysis or CI/CD configuration
Test-driven development — writing tests before implementation
Testing App Designer apps with programmatic gestures (see reference/app-testing-guidance.md)
When NOT to Use
Testing Simulink models — use Simulink test skills
Performance benchmarking — use profiling workflows
Must-Follow Rules
Present a test plan first — For non-trivial test suites, propose test methods and edge cases for user approval before writing code
Always use class-based tests — Every test file must inherit from matlab.unittest.TestCase. Never use script-based tests
No logic in test methods — No if, switch, for, or try/catch. Follow Arrange-Act-Assert. If a test needs conditionals, split into separate methods
Test public interfaces, not implementation — Never test private methods directly
Execute via MCP — Use run_matlab_test_file or evaluate_matlab_code to run tests
Workflow
Simple tests (clear behavior, limited scope)
Briefly state what you'll test (methods + key edge cases)
Transmit and capture RF waveforms using Wireless Testbench with NI USRP radios (X410, X310, N310, N320, N321, N300, X300, E320). Use when generating test signals, transmitting over the air, capturing IQ data, performing loopback tests, configuring multi-antenna setups, or troubleshooting dropped samples and gain settings. Covers basebandTransceiver, basebandTransmitter, basebandReceiver, continuous and once transmit modes, foreground and background capture, and UseRadioBuffer options. Also use w