Package: matlab.perftest
Superclasses: matlab.unittest.TestCase
Superclass of matlab.perftest
performance
test classes
Use the matlab.perftest.TestCase
class to write
class-based performance tests that can define measurement boundaries.
By default, the framework measures performance around the test method
boundary. However, test classes that inherit from matlab.perftest.TestCase
can
use the startMeasuring
and stopMeasuring
methods
to define boundaries to measure specific code segments.
The matlab.perftest.TestCase
derives from the matlab.unittest.TestCase
class.
The testing framework constructs the matlab.perftest.TestCase
instances.
keepMeasuring | Measure code with automatic looping |
startMeasuring | Designate start of measurement boundary |
stopMeasuring | Designate end of measurement boundary |
addTeardown | Dynamically add teardown routine to TestCase instance |
applyFixture | Use fixture with TestCase |
forInteractiveUse | Create TestCase for interactive use |
getSharedTestFixtures | Provide access to shared test fixtures |
log | Record diagnostic information during test execution |
onFailure | Dynamically add diagnostics for test failures |
run | Run TestCase test |
Also, the TestCase
class inherits methods
from these classes:
matlab.unittest.qualifications.Assertable | Qualification to validate preconditions of a test |
matlab.unittest.qualifications.Assumable | Qualification to filter test content |
matlab.unittest.qualifications.FatalAssertable | Qualification to abort test execution |
matlab.unittest.qualifications.Verifiable | Qualification to produce soft failure conditions |
Handle. To learn how handle classes affect copy operations, see Copying Objects.