Hi @华 张 ,
Welcome to Microsoft Q&A!
Code coverage is not supported for UWP unit tests currently. It has been reported to product team:
https://developercommunity.visualstudio.com/t/support-code-coverage-for-universal-apps-uwp-windo/578972
If you have any suggestion about the feature, you can vote and add comments in that ticket.
Thank you for helping us build a better Visual Studio!
Sincerely,
Anna
*
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.