Nunit 无法识别 Concordion.NUnit 插件

Nunit does not recognize Concordion.NUnit addin

采取的步骤: 我下载并安装了 NUnit。 我下载了Concordion.NET。 我下载了 Concordion.NET kickstarter (zip) 我验证了规范 (HelloWorld.html) 被标记为嵌入式资源。 我验证了 RequiredAddin("ConcordionNUnitAddin") 程序集属性已指定。 我构建了解决方案 我将 Concordion.NUnit.dll 复制到我的 NUnit 安装的插件目录中 (C:\Program Files (x86)\NUnit 2.6.4\bin\addins)。 我在 NUnit GUI 运行ner.

中加载了 kickstarter 解决方案

问题: NUnit 无法识别包含规范的 Spec 项目,即 Spec 程序集被标记为非 运行nable。 (它 运行 实际的 (NUnit) 单元测试很好。)

我的期望是 NUnit 将识别 Kickstart.Spec 项目,并且当我 运行 测试时,这些测试的结果将显示在 passed/failed 信息中。目前由于项目无法识别,仅显示NUnit单元测试(ShouldGreet)成功

我的预期是否不正确,或者我是否错过了一些额外的设置步骤来获得流程 运行ning?

您需要为 Concordion.NET 的当前版本使用 NUnit 2.6.3。 不幸的是,NUnit 插件依赖于版本 (http://nunit.org/index.php?p=extensionTips&r=2.6.4)。 NUnit的文档中也有说明:"Most of the add-in samples provided with NUnit are currently version dependent."

NUnit 2.6.4 于 2014 年 12 月 16 日发布。Concordion.NET 的未来版本也将支持此版本。

感谢您提供反馈 - Concordion.NET 的文档也需要更新以包含支持哪个版本的 NUnit 的信息。

此外,您可以将 Concordion.NET (https://www.nuget.org/packages/Concordion.NET/) 的 NuGet 包用于您的 Visual Studio 项目,这将确保您在项目中始终使用正确的 NUnit 引用.