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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Unit test cases execution in Unified Development Environment

(1) ShareShare
ReportReport
Posted on by 40
Hi Dynamics Community,
 
I have completed the Unified Development Environment setup. Now, I want to run Unit test cases. I have written a small test case, but somehow it is not showing in Test Explorer. Is there any other setup required to run test cases in the Unified Development Environment?
I have the same question (0)
  • Martin Dráb Profile Picture
    237,990 Most Valuable Professional on at
    Recompile the solution; it usually helps.
  • Sourav Mazumdar Profile Picture
    40 on at
    Hi Martin,
     
    I have tried to build, clean, and rebuild, but none are working. To explain briefly, when I reopen the Visual Studio, it shows the test cases. Now, while running, it asks to connect to Dataverse. After connecting, it fails with an error message,
    There is no class with the name TestClass. If it's a recently created class make sure it was built. 
     
    And sometimes it does not at all show the test cases in Test Explorer.
  • Verified answer
    Martin Dráb Profile Picture
    237,990 Most Valuable Professional on at
    That's a different problem. Now the test case was found locally, but it hasn't been deployed to the Power Platform environment. Deploy your code, e.g. by using Dynamics 365 > Deploy > Deploy models to Online Environment.
  • Verified answer
    Sourav Mazumdar Profile Picture
    40 on at
    Hi Martin,
    Thanks for your suggestion.
    So, after model build and deploy model, the test cases are now running in Test explorer.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 490 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans