web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

How to view Code Coverage Percent from Test Codeunit run

(1) ShareShare
ReportReport
Posted on by 25

Hello all,

I am trying to get my first extension ready for deployment to Appsource and I am required to submit a test package with at least 90% code coverage (according to a video on the learning portal). I have created a test package, made dependencies, set up a test suite for these tests and checked off update TCM, but I do not see a percent when I run all the successful tests. I know there is a page (9990) Code Coverage, that has percentages, but I am assuming that I am improperly using this feature, or I am not reading into the data correctly.

The code in the first column, is not my code, and I can not track down my Test code unit either by typing its ID into the filter bar, am I supposed to collect all the objects that get touched by various parts of my code? I am using a Docker Container environment, and have a Dev license if that helps.

Thank you all for your time.

Categories:
  • Catalyst619 Profile Picture
    355 on at

    [Deleted]

  • HimalPatel Profile Picture
    80 on at

    Have you figured it out ? I found that you need to start the process in code coverage and then perform your steps and then stop it to check the code coverage. I can see the code coverage for certain objects (like wizard and codeunits) but cannot see code coverage the the page extensions. 

    Can't figure it out. 

    Any thoughts ?

  • jdecottignies Profile Picture
    217 on at

    Hi,

    It seems that this feature is not already available for Business Central. See this issue:

    github.com/.../1827

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans