Main Content

Extend Testing Frameworks

Customize the testing environment; author constraints, diagnostics, fixtures, and plugins

The MATLAB® unit testing framework 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.

Classes

expand all

matlab.unittest.constraints.ConstraintFundamental interface for constraints
matlab.unittest.constraints.BooleanConstraintFundamental interface for constraints that support Boolean operations
matlab.unittest.constraints.ToleranceFundamental interface for tolerances
matlab.automation.diagnostics.DiagnosticFundamental interface for diagnostics
matlab.unittest.diagnostics.ConstraintDiagnosticDiagnostic with fields common to constraints
matlab.unittest.fixtures.FixtureFundamental interface for test fixtures
matlab.unittest.plugins.TestRunnerPluginPlugin interface for extending test runner
matlab.unittest.plugins.ParallelizableInterface for plugins that support running tests in parallel
matlab.unittest.plugins.QualifyingPluginInterface for plugins that perform system-wide qualifications
matlab.test.behavior.MissingTest if class satisfies contract for missing values

Namespaces

matlab.unittest.constraintsSummary of classes in MATLAB constraints interface
matlab.unittest.fixturesSummary of classes in MATLAB fixtures interface
matlab.unittest.pluginsSummary of classes in MATLAB plugins interface

Topics

Constraints

Fixtures

Plugins