Unable to execute features : Failed to configure settings for runsettings plugin 'VSTest Run Configuration'

764 views
Skip to first unread message

Mark Winspear

unread,
Nov 2, 2015, 9:28:59 AM11/2/15
to SpecFlow
Hi all

I am trying to execute my first specflow feature in Visual Studio (having previously set up a framework using Java, Cucumber and Selenium).

I have installed (using NuGet), Specflow, NUnit, Selenium.Support, Selenium.WebDriver, SpecFlow.MsTest and SpecFlow.NUnit

My app.config file contains the following:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" />
  </configSections>
  <specFlow>
       <unitTestProvider name="MsTest"/>
  </specFlow>
</configuration>

On running the feature file, I get the following:
----- Discover test started ------
Failed to configure settings for runsettings plugin 'VSTest Run Configuration' as it threw following exception:
'An error occurred while parsing EntityName. Line 1, position 32.'
Please contact the plugin author.
========== Discover test finished: 0 found (0:00:00.0370009) ==========

First port of call is a good spell of googling, yet I have found no solutions.

Changing the unitTestProvider to NUnit has the same result.

I am using Visual Studio 2015 Enterprise

Can anyone help please?

Thanks

Mark



Sam Holder

unread,
Nov 2, 2015, 1:08:08 PM11/2/15
to specflow
 My first port of call would be to get things working with the minimum number of packages. So I would remove all of these:

NUnit, Selenium.Support, Selenium.WebDriver, SpecFlow.MsTest and SpecFlow.NUnit

then i would add a reference to the visual studio quality testing unit test dll so that MStest works and see if the issue is resolved

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Winspear

unread,
Nov 3, 2015, 7:41:00 AM11/3/15
to SpecFlow
Thanks for the reply

I started again, and as simply as I could:

1. Un-installed and re-installed Visual Studio (just in case)
2. Open Visual Studio and add the Specflow extension (Tools > Extensions and Updates)
3. Create new Unit Test project
4. Add a new Specflow feature file (which contains an example feature)
5. Add References via NuGet for SpecFlow and SpecFlow.NUnit
6. Build solution

Unfortunately the same issue occurs

Mark Winspear

unread,
Nov 3, 2015, 10:15:02 AM11/3/15
to SpecFlow
For information - if anyone else has this issue... One of the parent folders that the solution was in had an ampersand in the title - this was causing the cryptic error!

Stephen McCafferty

unread,
Nov 5, 2015, 6:39:45 AM11/5/15
to SpecFlow
Thanks for posting an follow-up with your insights so other users with the same issue can find a solution in future.
Message has been deleted

mahesh....@prototechsolutions.com

unread,
Dec 17, 2018, 1:41:48 AM12/17/18
to SpecFlow
Thank you. Removing special char '&'  from file path resolved my issue. Thanks.
Reply all
Reply to author
Forward
0 new messages