Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
| Value | Available or changed with | Description |
|---|---|---|
| UnitTest | runtime version 16.0 | Specifies that the codeunit contains unit tests, which validate individual functions or logic in isolation from external dependencies. This is the default value. |
| IntegrationTest | runtime version 16.0 | Specifies that the codeunit contains integration tests, which verify interactions between multiple components or systems. |
| Uncategorized | runtime version 16.0 | Specifies that the codeunit is not yet categorized. |
| AITest | runtime version 16.0 | Specifies 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.
Related information
Getting started with AL
Developing extensions
TestIsolation property
RequiredTestIsolation property