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

  • SEARCH
  • Home
  • 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 6803473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:20:56+00:00 2026-05-26T19:20:56+00:00

We use Visual Studio 2010 Ultimate with tests written in MSTest. Both our unit

  • 0

We use Visual Studio 2010 Ultimate with tests written in MSTest. Both our unit tests and integration tests* are written in MSTest.

**By our definition, an integration test is an MSTest TestMethod that takes a while to run and/or calls out to external components such as a database or web services.*

I’m looking for a way of easily filtering out the integration tests so that only unit tests run without all the integration tests running too.

My ideas so far:

  1. Mark integration tests with the [Ignore] attribute. This works but is a real pain when you do want to run the integration tests.

  2. Assign a [TestCategory] attribute to the different test types. This allows them to be run separately but only through the Test View panel. You can’t use CTRL+R, A (Run All Tests in Solution) or other similar shortcuts/hotkeys.

  3. The integration tests are in a separate project, is there something that could be done to stop them running at the project level? As long as it’s easy to toggle.

  4. Write the integration tests in a different test framework, e.g. NUnit. This would keep them totally separate from a tooling point of view.

Does anyone have any other suggestions? Are there any plug-ins that can help with this?

  • 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-26T19:20:57+00:00Added an answer on May 26, 2026 at 7:20 pm

    I recommend having a different project (or projects) for integration tests because depending on your runner the only real way to run or not run tests across all runners is to include or not include a test class library.

    But, I also recommend, if you’re using MSTest, to use the TestCategoryAttribute to tag non-unit tests. You can then “filter” tests to be run in Test View with MSTest.

    Runners like Resharper and apparently TestDriven.net (http://bit.ly/tmtYC2) allow you to then filter-out those tests from general unit-test executions.

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

Sidebar

Related Questions

I have Visual Studio 2010 Ultimate and C# and am doing unit tests and
I use: Visual Studio 2010 Ultimate, Resharer 6. In ReSharper's options i choose Visual
I am using Visual Studio 2010 Ultimate to perform loadtests. These loadtest use recorded
I'm trying to use visual studio 2010. But it seems that the .sln file
Does anyone know if it is possible to use Visual Studio 2010 RC with
How to export use case diagram in visual studio 2010 as image? jpg or
I am just starting to explore/use the UML modeling support in Visual Studio 2010
I Use Visual Studio 2010 with ASP.NET 4.0 and IIS7. When I open my
Hi guys can I use Visual Studio 2010 express edition to create a telco-grade
I'm not quite sure how the Visual Studio 2010 Ultimate licensing works. How many

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.