matlab.unittest.selectors.HasSharedTestFixture Class
Namespace: matlab.unittest.selectors
Select TestSuite
array elements by shared test
fixture
Description
The matlab.unittest.selectors.HasSharedTestFixture
class provides a
selector for filtering a test suite based on shared test fixtures.
For a class-based test, shared test fixtures are all the fixtures specified by the
SharedTestFixtures
class-level attribute of the corresponding TestCase
class.
Creation
Description
selector = matlab.unittest.selectors.HasSharedTestFixture(expectedFixture)
creates a selector that selects TestSuite
array elements that use a shared
test fixture compatible with expectedFixture
and sets the
ExpectedFixture
property. Two fixtures are compatible if they
are of the same class and if they make the same changes to the environment.
Properties
Examples
Version History
Introduced in R2014a