Main Content

matlab.unittest.Scope class

Package: matlab.unittest

Test scope enumeration class

Description

The matlab.unittest.Scope enumeration class provides a means to specify the scope of test execution. The enumeration class contains the following members.

Numeric RepresentationEnumeration Member NameScope Description
1TestMethod

TestMethodSetup, Test, and TestMethodTeardown methods

2TestClass

TestClassSetup and TestClassTeardown methods

3SharedTestFixture

shared test fixture setup and teardown methods

Construction

matlab.unittest.Scope.MemberName creates an instance of the test scope enumeration class.

Examples

collapse all

n = matlab.unittest.Scope.TestClass
n = 

    TestClass

Display information about the variables.

whos n
  Name      Size            Bytes  Class                    Attributes

  n         1x1                 0  matlab.unittest.Scope 
Introduced in R2017a