The MATLAB® Unit Testing Frameworks provides test tool authors the ability to customize the testing environment. You can extend test writing through custom constraints, diagnostics, and fixtures, and extend test running and result reporting through custom plugins for the test runner.
|Plugin interface for extending TestRunner|
|Interface for plugins that support running tests in parallel|
|Interface for plugins that perform system-wide qualifications|
|Interface that determines where to send text output|
|Summary of classes in MATLAB Constraints Interface|
|Summary of classes in MATLAB Diagnostics Interface|
|Summary of classes in MATLAB Fixtures Interface|
|Summary of classes in MATLAB Plugins Interface|
|Summary of classes in MATLAB Plugin Data Interface|
Create a custom constraint to determine if a given value has the same size as an expected value.
Create a custom Boolean constraint to determine if a given value has the same size as an expected value.
This example shows how to create and apply a custom tolerance.
TestRunnerPlugin class to extend the
TestRunner. You can implement methods to extend the
creation, setup, running, and teardown of tests or test fixtures.
Create a custom plugin that counts the number of passing and failing assertions.
Create a custom plugin that counts the number of passing and failing assertions when tests run in parallel.
Create a plugin that adds the actual and expected values in an assertion to
This example shows how to create a custom plugin to save diagnostic details. The plugin listens for test failures and saves diagnostic information so you can access it after the framework completes the tests.
This example shows how to create a plugin that uses a custom format to write finalized test results to an output stream.