Main Content

matlab.unittest.fixtures.ProjectFixture class

Package: matlab.unittest.fixtures
Superclasses: matlab.unittest.fixtures.Fixture

Fixture for loading project

Description

ProjectFixture is a fixture for loading a project during execution of a test suite.

The test framework constructs this class. When the test framework sets up the fixture, it loads the project if not already loaded. When the test framework tears down the fixture, the project is closed if the fixture loaded it, otherwise the project remains loaded.

The matlab.unittest.fixtures.ProjectFixture class is a handle class.

Class Attributes

HandleCompatible
true

For information on class attributes, see Class Attributes.

Creation

Instances of this class are created only by the testing framework.

Properties

expand all

Project root folder, specified as a string scalar. ProjectFolder contains the absolute path to the root folder of the project that is loaded when the fixture is set up.

Example: C:/projects/project1/

Attributes:

GetAccess
public
SetAccess
immutable

Data Types: string

Limitations

Introduced in R2019a