matlab.unittest.TestCase.forInteractiveUse
Class: matlab.unittest.TestCase
Namespace: matlab.unittest
Create test case for interactive use
Syntax
Description
testCase = matlab.unittest.TestCase.forInteractiveUse
creates a
test case configured for interactive testing. The returned TestCase
instance
is suited for experimentation at the command prompt. It reacts to qualifications by printing
messages to the screen for both passing and failing events.
testCase = matlab.unittest.TestCase.forInteractiveUse(
creates an instance of the specified test class for interactive testing.testClass
)
testCase = matlab.unittest.TestCase.forInteractiveUse(
also specifies whether to apply any shared test fixtures associated with the test class for
interactive testing. If testClass
,ApplySharedTestFixtures=tf
)tf
is true
, the method sets
up the shared test fixtures when it creates an interactive test case from
testClass
. The testing framework automatically tears down these
fixtures when the test case goes out of scope. Shared test fixtures are specified using the
SharedTestFixtures
attribute of TestCase
subclasses. (since R2024a)