The code coverage functionality is useful when you are customizing Microsoft Dynamics NAV and want to test your work. It provides a quick overview of the objects for which code has been executed, and it displays the code that has been logged.
To use the Code Coverage Tool
-
In the Classic client, click Tools, click Debugger, and then click Code Coverage to open the Code Coverage window.
-
Click Start. The Code Coverage tool is now ready to log code.
-
Return to the Code Coverage window when you have completed the transactions that you want to monitor. This window now contains a list of any tables, forms, reports, dataports, and codeunits that were used.
-
Click Stop.
-
Select an object that you want to view the code for. Click Code to open the Code Overview window.