Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, Power Apps, Power Automate, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I've a requirement for generating code coverage for my unit test cases in D365 FO. I am using VS enterprise edition to analyse code coverage results for my test case, but unfortunately code coverage results are blank.I can only see the test case getting passed or failed.
I have done the following things in my environment,
While debugging the selected test cases , i can see "binary was not built with debug information" for my package dll.
Looking for your suggestions on this.
Thanks in advance.
Can you share your runsettings file? FO builds always produce symbols so there must be something else missing.
That said, code coverage with X++ is tricky. Because of the way pre/post handlers work you typically end up with a bunch of not covered code. This problem was avoided with chain of command, luckily, and we've talked about changing the compiler to have pre/post handlers work similarly to chain of command to avoid this problem - but it's the type of change that is a bit risky to introduce so we haven't put this on our backlog at all yet.
Thanks for your prompt reply. Currently i am testing classes which don't have event handlers subscribed, but unfortunately code coverage is not working with those classes too.
Please find below is my settings file,
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
Try change the modulepath value to .*MyPackage*.*
Tried changing the value to .*MyPackage*.*.
Still no luck, I am getting this kind of result when I run the test cases,
Did you make a typo in your post here, or do you have one too many .* at the end there?
I just used the same format that you have mentioned like .*MyPackage1.*
Is there any issue with IDE say like we need to uninstall and reinstall it again.
Business Applications communities