function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi K 47Ravi K 47 

test coverage for custom metadata in test classs

Hello,

I have a custom medata data CMDCongi API name  "CMDCongi __mdt"  and under this i have created one custom filed i.ie value API :"Value__c" .

These metadat i have used in the Apex class.

So now my requirement is to cover the custom metadata in test class.

Could you please help on this req and let me know if you require any additonal information .


Thanks
 
Raj VakatiRaj Vakati
Custom metadata types are available by default for test coverage even if you set to seealldata to false. please refer this link for more information /
https://developer.salesforce.com/blogs/engineering/2015/05/testing-custom-metadata-types.html