Table "Code Coverage"
Virtual table that provides code coverage analysis data for AL objects during testing and debugging. This table enables tracking of code execution patterns and identifying untested code paths.
Remarks
The Code Coverage table is essential for development and testing workflows, providing detailed line-by-line execution tracking for AL code. It records which lines of code have been executed during test runs or debugging sessions, helping developers identify untested code paths and measure test coverage quality. This table supports quality assurance processes by highlighting areas of code that may need additional testing. The information is particularly valuable for automated testing frameworks, code quality analysis, and ensuring test coverage across all AL objects in an application.
Properties
| Name | Value |
|---|---|
| DataPerCompany | False |
| Scope | Cloud |
Fields
| Name | Type | Description |
|---|---|---|
| "Object Type" | Option | The type of AL object being tracked for code coverage. |
| "Object ID" | Integer | The unique identifier of the object being tracked for code coverage. |
| "Line No." | Integer | The line number within the object's source code. |
| "Line Type" | Option | The type of code line (Object declaration, Trigger/Function, Empty line, or executable Code). |
| Line | Text[250] | The actual source code text of the line being tracked. |
| "No. of Hits" | Integer | The number of times this line of code has been executed during the coverage tracking session. |
| "Code Coverage Status" | Option | The coverage status indicating whether the line was executed, partially executed, or not covered. |
| "Method Id" | Integer | |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemRowVersion | BigInteger |