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 990975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:01:58+00:00 2026-05-16T06:01:58+00:00

I have configured Specflow to target the MsTest framework (instead of NUnit) by specifying

  • 0

I have configured Specflow to target the MsTest framework (instead of NUnit) by specifying it like this in the app.config of my ‘specs’ class library:

<configSections>
    <section name="specFlow"
   type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
</configSections>

<specFlow>
 <unitTestProvider name="MsTest.2010" />
</specFlow>

So once it’s in place, I can see that my test fixtures are produced correctly by the Specflow custom tool, with correct TestClassAttribute() and methods, etc:

[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.3.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()]
...

The specs class builds, but now I cannot run the tests using the Test –> Run –> All Tests in Solution inside Visual Studio 2010 on my vista 64 box. Why doesn’t VS recognize these as valid tests to run?

  • 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-16T06:01:58+00:00Added an answer on May 16, 2026 at 6:01 am

    I had to recreate the project as a Test Project and not merely a Class Library — because I had started development with NUnit and SpecFlow, I had created a vanilla class library to hold my specs that had the NUnit attributes decorated. I thought I could simply change the app.config of this existing project to point at the mstest framework and stop using NUnit, but VS2010 never recognized the tests, despite the correct creation of the stubs by specflow’s custom tool.

    So…I added a new Test Project to my solution, moved all of my spec code to that new project, then recompiled, and viola, VS2010 recognizes the tests. I’m sure there is a GUID it is looking for in the XML of the .csproj file or something that tells it to wire up the testing framework, but I didn’t dig that far.

    Hope this helps someone.

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

Sidebar

Related Questions

I have configured my Web.Config file as follow in a ASP.NET MVC 2 project:
I have configured my app to use migration e.g.: NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
I have configured some products and an in app purchases test account. I am
I have configured a route in config.rb resources :password When the parameter not an
I have configured my Django app to run under Apache+FastCGI on Linux (Ubuntu, if
I have configured the apache httpClient like so: HttpProtocolParams.setContentCharset(httpParameters, UTF-8); HttpProtocolParams.setHttpElementCharset(httpParameters, UTF-8); I also
I have configured a multi website like bikestore. So right now i have a
I have configured 2 connections strings : <connectionStrings> <add name=ApplicationServices connectionString=Data Source=.\SQLInstance;Initial Catalog=App;Integrated Security=True
I have configured a GridView to fill data by an ObjectDataSource . This ObjectDataSource
I have configured the Canvas URL of a Facebook app with a domain name

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.