TestType Property

Version: Available or changed with runtime version 16.0.

Specifies the type of test implemented in the codeunit, such as unit test.

Applies to

  • Codeunit

Property value

ValueAvailable or changed withDescription
UnitTestruntime version 16.0Specifies that the codeunit contains unit tests, which validate individual functions or logic in isolation from external dependencies. This is the default value.
IntegrationTestruntime version 16.0Specifies that the codeunit contains integration tests, which verify interactions between multiple components or systems.
Uncategorizedruntime version 16.0Specifies that the codeunit is not yet categorized.
AITestruntime version 16.0Specifies that the codeunit contains AI tests, which validate behavior driven by artificial intelligence, for example, accuracy.

Remarks

The TestType property is used to categorize the type of tests implemented in a codeunit according to the primary purpose and scope of the test. This categorization helps organize tests and understand their purpose within the application. By specifying the appropriate test type, developers can ensure that their tests are grouped for execution and reporting in CI/CD pipelines. Learn more about how the RequiredTestIsolation property can be used to set the required isolation level for tests.

Getting started with AL
Developing extensions
TestIsolation property
RequiredTestIsolation property