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

Creating test codeunits for an extension

(0) ShareShare
ReportReport
Posted on by

Hey guys,

I have developed an extensions for BC and now I want to create some test codeunits to test my written code.

I have never done this before, that is why I do not know how to start?!

Do you have some literature you can recommend?

Is there a common way that everyone has to go so that I can use this as an orientation?

 
Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    You need to create a separate test app and in app.json of this second app you need to declare dependency of your app to test. Then use the Application Test Toolkit to create your tests. You can use the function Import-TestToolkitToNavContainer to import the tolkit in your Docker sandbox.

    More info here:

    docs.microsoft.com/.../devenv-extension-advanced-example-test

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