Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 831101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:09:01+00:00 2026-05-15T04:09:01+00:00

I have a simple project on C#.NET and have written it in Visual Studio

  • 0

I have a simple project on C#.NET and have written it in Visual Studio 2010. I am a newbie in C# and Visual Studio.

I have written some unit tests, and they pass ok, but how can I test code coverage?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:09:01+00:00Added an answer on May 15, 2026 at 4:09 am

    I use NUnit as my testing framework and use TestDriven.Net to run VS2010’s code coverage. This also works with MSTest i.e. Visual Studio tests. First you need to get hold of TestDriven.Net:

    http://www.testdriven.net/download.aspx

    Once TestDriven.Net is installed, you will get some extra items added to your Solution Explorer context menu e.g. right-click a project and you’ll have some TestDriven options under “Test With”. One of those options is “Coverage” which will run your unit tests with code coverage and then display the code coverage results window. Works very well.

    Update

    Of course you can only get code coverage in Visual Studio 2010 if you have a version that actually supports it i.e. Premium or Ultimate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple Windows App written in Visual Studio 2008 (.NET 3.0, C#).
I have a class library written in .Net that I would like to make
Currently I'm working with a big, old and extremely poorly written ASP.NET 1.1 application
I also have a desktop application written in Windows Forms that is a middling
I'm trying to create a setup project and I can't believe how painful it
I'm investigating an asp.net web application that extensively uses User Controls on each page.
The original question: The title of this question might be a bit clumsily phrased,
UPDATE: All of these problems was for converting a Website application to a Web
I can't seem to find the Build option under Configuration Properties folder in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.