Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can you mark some tests to run only those? From all the test that you have in different folder to mark some as sanity and only run those?

share|improve this question

If you are using SpecFlow look at the Tags Tags description where placing a specific tag before your Scenario allows you to run the specific ones you want. I use @test or @dev for specific User/Functional Tests and when using my NUnit Driver I put in the tag with the /include option. This links in to the SpecFlow feature files such that the following case will check that I can get to the Home Page when I use the @test tag.

Scenario: Access the Home Page with Internet Explorer
    Given I have started Internet Explorer
    When I go to Web Site
    Then I should see the home page

They are very powerful and very useful in structuring your tests.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.