如果我尝试加载插件,SpecFlow测试会话不会启动

时间:2015-03-16 04:15:46

标签: c# mstest specflow

我在app.config中添加了这个块:

  <specFlow>
        <unitTestProvider name="MsTest" />
    <plugins>
      <add name="Test" path=".\plugins" type="Runtime"/>
    </plugins>
  </specFlow>

目录为空。现在,当我尝试运行或调试我的SpecFlow测试时 - 会话失败并显示此消息The program '[13092] vstest.executionengine.x86.exe: Program Trace' has exited with code 0 (0x0).

1 个答案:

答案 0 :(得分:0)

我认为您的问题是您没有指定插件代码所在的实际dll,只是目录。

我认为你需要更像这样的东西:

<specFlow>
      <unitTestProvider name="MsTest" />
  <plugins>
    <add name="Test" path=".\plugins\MyPlugin.dll" type="Runtime"/>
  </plugins>
</specFlow>
相关问题