There is a known issue caused by the XAML build agents caching the test adapters. This means that you can only use a single version of SpecFlow+ Runner with the same build agent. If you have more than one version of SpecFlow+ Runner installed, you need to remove the additional versions to ensure that the latest version is used, instead of the cached version.
If you need to use different version for different builds, you will need to define separate build agents for each build.
<Profile> element) and enter the path to your .runsettings file in the Run Settings File field of your build definition (under Automated Tests in your screenshot). You should not need to make additional changes to the run settings, but
if you are still having issues, can you tell me what your symptoms are?<?xml version="1.0" encoding="utf-8"?><RunSettings> <!-- Configurations that affect the Test Framework --> <RunConfiguration> <MaxCpuCount>1</MaxCpuCount> <!-- Path relative to solution directory --> <ResultsDirectory>.\TestResults</ResultsDirectory> <!-- [x86] | x64 - You can also change it from menu Test, Test Settings, Default Processor Architecture --> <TargetPlatform>x86</TargetPlatform> <!-- Framework35 | [Framework40] | Framework45 --> <TargetFrameworkVersion>Framework45</TargetFrameworkVersion> <!-- Path to Test Adapters --> <TestAdaptersPaths>%SystemDrive%\Temp\foo;%SystemDrive%\Temp\bar</TestAdaptersPaths> </RunConfiguration>
<!-- Adapter Specific sections -->
<!-- MSTest adapter --> <MSTest> <SettingsFile>RegressionTest.testsettings</SettingsFile> <ForcedLegacyMode>true</ForcedLegacyMode> </MSTest> <!-- Configurations for SpecFlow+ Runner --> <SpecRun> <Profile>Default.srprofile</Profile> <ReportFile>CustomReport.html</ReportFile> <GenerateSpecRunTrait>false</GenerateSpecRunTrait> <GenerateFeatureTrait>false</GenerateFeatureTrait> </SpecRun>
</RunSettings>--
You received this message because you are subscribed to the Google Groups "SpecRun" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specrun+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<?xml version="1.0" encoding="utf-8"?><TestProfile xmlns="http://www.specrun.com/schemas/2011/09/TestProfile"> <Settings projectName="RegressionTests.IntegrationSuite" projectId="{86b72a39-ef18-46ff-a8e4-2b8c3ed78ac4}" /> <Execution retryFor="Failing" retryCount="2" stopAfterFailures="0" testThreadCount="5" testSchedulingMode="Sequential" /> <!-- For collecting by a SpecRun server update and enable the following element. For using the collected statistics, set testSchedulingMode="Adaptive" attribute on the <Execution> element. <Server serverUrl="http://specrunserver:6365" publishResults="true" /> --> <TestAssemblyPaths> <TestAssemblyPath>RegressionTests.IntegrationSuite.dll</TestAssemblyPath> </TestAssemblyPaths> <DeploymentTransformation> <Steps> <!-- sample config transform to change the connection string--> <!--<ConfigFileTransformation configFile="App.config"> <Transformation> <![CDATA[<?xml version="1.0" encoding="utf-8"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <connectionStrings> <add name="MyDatabase" connectionString="Data Source=.;Initial Catalog=MyDatabaseForTesting;Integrated Security=True" xdt:Locator="Match(name)" xdt:Transform="SetAttributes(connectionString)" /> </connectionStrings> </configuration> ]]> </Transformation> </ConfigFileTransformation>--> </Steps> </DeploymentTransformation></TestProfile>
<DeploymentTransformation>
<Steps>
<!-- sample config transform to change the connection string-->
<!--<ConfigFileTransformation configFile="App.config">
<Transformation>
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<connectionStrings>
<add name="MyDatabase" connectionString="Data Source=.;Initial Catalog=MyDatabaseForTesting;Integrated Security=True"
xdt:Locator="Match(name)" xdt:Transform="SetAttributes(connectionString)" />
</connectionStrings>
</configuration>
]]>
</Transformation>
</ConfigFileTransformation>-->
</Steps>
</DeploymentTransformation><ConfigFileTransformation configFile="App.config"><connectionStrings>
<add name="MyDatabase" connectionString="Data Source=.;Initial Catalog=MyDatabaseForTesting;Integrated Security=True"
xdt:Locator="Match(name)" xdt:Transform="SetAttributes(connectionString)" />
</connectionStrings> <add key="{Target}" />