matlab.unittest.plugins.QualifyingPlugin Class
Namespace: matlab.unittest.plugins
Superclasses: matlab.unittest.plugins.TestRunnerPlugin
Interface for plugins that perform system-wide qualifications
Description
Use qualifying plugins to produce test failures apart from your test content. Qualifications at the plugin level are useful because you can avoid repeating the same qualification in every test. You can decide to apply system-wide qualifications to the test suite periodically by simply adding the plugin to the test runner for a particular test session.
The QualifyingPlugin
interface enables test runner
plugin authors to implement plugins that perform system-wide qualifications
on a test suite. You can perform verifications, assumptions, assertions,
and fatal assertions in these inherited methods:
setupTestClass
teardownTestClass
setupTestMethod
teardownTestMethod
You can perform only assumptions, assertions, and fatal assertions in these inherited methods:
setupSharedTestFixture
teardownSharedTestFixture
Methods
assertUsing | Assert that value satisfies given constraint |
assumeUsing | Assume that value satisfies given constraint |
fatalAssertUsing | Fatally assert that value satisfies given constraint |
verifyUsing | Verify that value satisfies given constraint |
Inherited Methods
createSharedTestFixture | Extend creation of shared test fixtures |
createTestClassInstance | Extend creation of class-level TestCase instances |
createTestMethodInstance | Extend creation of method-level TestCase instances |
reportFinalizedResult | Extend reporting of finalized test results |
reportFinalizedSuite | Extend reporting of finalized TestSuite array |
runSession | Extend running of test session |
runTest | Extend running of single Test element |
runTestClass | Extend running of Test elements from same class or
function |
runTestMethod | Extend running of single Test method |
runTestSuite | Extend running of TestSuite array |
setupSharedTestFixture | Extend setting up shared test fixture |
setupTestClass | Extend setting up test class |
setupTestMethod | Extend setting up Test method |
teardownSharedTestFixture | Extend tearing down shared test fixture |
teardownTestClass | Extend tearing down test class |
teardownTestMethod | Extend tearing down Test method |
Copy Semantics
Handle. To learn how handle classes affect copy operations, see Copying Objects.
Examples
Version History
Introduced in R2015b