matlab.perftest.TestCase class
Package: matlab.perftest
Superclasses: matlab.unittest.TestCase
Superclass of matlab.perftest
performance
test classes
Description
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.
Construction
The testing framework constructs the matlab.perftest.TestCase
instances.
Methods
keepMeasuring | Measure code with automatic looping |
startMeasuring | Designate start of measurement boundary |
stopMeasuring | Designate end of measurement boundary |
Inherited Methods
addTeardown | Dynamically add teardown code to test case |
applyFixture | Use fixture with test case |
createTemporaryFolder | Create temporary folder |
forInteractiveUse | Create test case 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 tests corresponding to test case |
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 |
Copy Semantics
Handle. To learn how handle classes affect copy operations, see Copying Objects.
Examples
Version History
Introduced in R2016a