How to see code coverage result in Visual Studio 2022 professional

Samuel David 21 Reputation points
2022-12-01T21:19:29.853+00:00

Hello All,
I am using visual studio 2022 professional. Used Xunit, wrote unit cases in the project. How can I see the code coverage percentage.

Please suggest me.

Thanks

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-12-02T03:47:34.543+00:00

    Hi @Samuel David ,

    Welcome to Microsoft Q&A!

    The code coverage feature is available only in Visual Studio Enterprise edition.

    More details about code coverage, please refer to: Analyze code coverage.

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.