次の NuGets をインストールしました: Specflow.Nunit,specflow ,Specrun.Nunit NUnit 2.6.3 と共に。 runtests.cmd (specrun.nunit によって自動生成) を実行しようとしていますが、次のエラーが発生します。
TechTalk.SpecRun.Framework.SpecRunException: 少なくとも 1 つのテスト スレッドが中止されました。---> System.Reflection.TargetInvocationException: 呼び出しのターゲットによって例外がスローされました。---> System.MissingMethodException: メソッドが見つかりません: 'Void TechTalk.SpecRun.SpecRunner.Initialize()'. 私の default.srprofile には以下が含まれます:
<?xml version="1.0" encoding="utf-8"?>
<TestProfile xmlns="http://www.specrun.com/schemas/2011/09/TestProfile">
<Settings projectName="<PROJECTNAME>" projectId="{------}" />
<Execution stopAfterFailures="3" testThreadCount="2" 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>projectname.dll</TestAssemblyPath>
</TestAssemblyPaths>
<DeploymentTransformation>
<Steps>`enter code here`
<!-- 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>
また、VS 出力ウィンドウで次のエラーが表示されます: ファイルまたはアセンブリ 'TechTalk.SpecRun, Version=1.3.0.76, Culture=neutral, PublicKeyToken=d0fc5cc18b3b389b' またはその依存関係の 1 つを読み込めませんでした。システムは、指定されたファイルを見つけることができません。 誰かがこれで私を助けてくれますか?