【问题标题】:Unable to detect test cases Nunit, Specflow VS 2013无法检测测试用例 Nunit、Specflow VS 2013
【发布时间】:2018-01-24 06:49:54
【问题描述】:

我的配置文件中有以下设置,但测试资源管理器仍然无法找到测试用例。

<specFlow>
    <unitTestProvider name="Nunit" />
    <plugins>
      <add name="SpecFlow.Plus.Excel" type="Generator" />
    </plugins>
</specFlow>

【问题讨论】:

    标签: visual-studio nunit specflow


    【解决方案1】:

    您可能没有将测试适配器包添加到您的项目中。

    发件人:https://stackoverflow.com/a/38990326/3155323

    您需要一个适用于 Visual Studio 的测试运行器适配器,以便在测试资源管理器中获取测试。它们由 NuGet 包分发。将测试运行程序的包添加到您的测试项目中。

    • SpecFlow+Runner:SpecRun.Runner
    • NUnit2:NUnitTestAdapter
    • NUnit3:NUnit3TestAdapter
    • XUnit:xunit.runner.visualstudio
    • MsTest:不需要额外的适配器

    【讨论】:

      【解决方案2】:

      转到您创建的项目,然后确保执行以下操作—— 1.右键单击您的项目
      2. 转到 管理 NuGet 包 ** 3. 转到 **Installed packages 选项并确保您有 NUnit Test Adaptor

      【讨论】:

        猜你喜欢
        • 2020-02-06
        • 1970-01-01
        • 2021-10-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多